]> granicus.if.org Git - php/commitdiff
make pharcommand.inc works without ereg
authorArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 16:08:42 +0000 (16:08 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 16:08:42 +0000 (16:08 +0000)
ext/phar/phar/pharcommand.inc

index 80b6f18d076d3e770b62248b956b6e87fa4c97aa..2060f5227f3fa93c70c3a0fe83f042241c133b80 100755 (executable)
@@ -213,7 +213,7 @@ class PharCommand extends CLICommand
                        $apiver = trim(substr($apiver, strlen('API Version')));
                        if ($apiver) {
                                self::notice("Pear package PHP_Archive: API Version: $apiver.\n");
-                               $files  = split("\n", `pear list-files PHP_Archive`);
+                               $files  = explode("\n", `pear list-files PHP_Archive`);
                                $phpdir = `pear config-get php_dir 2>/dev/null`;
                                $phpdir = trim($phpdir);
                                self::notice("Pear package PHP_Archive: $phpdir.\n");