From f5d637bce14826e21ace2c0660d55dbbf0119b94 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 24 Aug 2009 18:29:12 -0400 Subject: Add split() wrapper so that when split() is removed from php 6 we will not have any extra gotchas. Resolves #57 --- etc/inc/pfsense-utils.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'etc/inc/pfsense-utils.inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 69e65bc..0f182ee 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1784,4 +1784,11 @@ function update_progress_bar($percent) { } } -?> +/* Split() is being DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged. */ +if(!function_exists("split")) { + function split($seperator, $haystack, $limit = null) { + return preg_split($seperator, $haystack, $limit); + } +} + +?> \ No newline at end of file -- cgit v1.1