summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-24 18:29:12 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-24 18:29:12 -0400
commitf5d637bce14826e21ace2c0660d55dbbf0119b94 (patch)
tree4e7f84dd0e0fe49db4d5d4b59d9d0c2ae82fb203 /etc
parent14578e35a5d3570a71abc3f0098d72c91b8a7e0d (diff)
downloadpfsense-f5d637bce14826e21ace2c0660d55dbbf0119b94.zip
pfsense-f5d637bce14826e21ace2c0660d55dbbf0119b94.tar.gz
Add split() wrapper so that when split() is removed from php 6 we will not have any extra gotchas. Resolves #57
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc9
1 files changed, 8 insertions, 1 deletions
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
OpenPOWER on IntegriCloud