summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
committersmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
commitcfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch)
tree465ee07c80898171a4cc41a6ac82d9133012797d /tmp
parent80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff)
downloadpfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.zip
pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.tar.gz
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 8ec4f73..2285ae8 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -23,9 +23,9 @@
$newslicedir = '/tmp' . $ARGV[1];
setup_serial_port("upgrade", $newslicedir);
- $files_to_process = split("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
+ $files_to_process = explode("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
foreach($files_to_process as $filename)
if(file_exists($filename))
exec("/bin/rm -f $filename");
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud