Replace split() invocations with explode()

Do not use split(), which has been deprecated as of PHP 5.3.0. As we
don't even require regular expressions here, just use explode() instead.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-06-28 08:55:47 +02:00
parent 2e20a7929f
commit a32b2f2ef7

View file

@ -101,7 +101,7 @@ if ($uid):
$continuation_line = 0; $continuation_line = 0;
$current_line = ""; $current_line = "";
$paren_depth = 0; $paren_depth = 0;
foreach (split("\n", $pkgbuild_raw) as $line) { foreach (explode("\n", $pkgbuild_raw) as $line) {
$line = trim($line); $line = trim($line);
# Remove comments # Remove comments
$line = preg_replace('/\s*#.*/', '', $line); $line = preg_replace('/\s*#.*/', '', $line);