Browse Source

MFH: Fix phar regex test when '.php' is part of the path, instead be more specific with '.php$' regex.

experimental/5.3-FPM
Brian Shire 17 years ago
parent
commit
0639396ac1
  1. 2
      ext/phar/tests/phar_buildfromdirectory6.phpt

2
ext/phar/tests/phar_buildfromdirectory6.phpt

@ -15,7 +15,7 @@ foreach(range(1, 4) as $i) {
try {
$phar = new Phar(dirname(__FILE__) . '/buildfromdirectory.phar');
var_dump($phar->buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php/'));
var_dump($phar->buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php$/'));
} catch (Exception $e) {
var_dump(get_class($e));
echo $e->getMessage() . "\n";

Loading…
Cancel
Save