mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
Fix phar regex test when '.php' is part of the path, instead be more specific with '.php$' regex.
This commit is contained in:
parent
121f106685
commit
2484e563e2
@ -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…
Reference in New Issue
Block a user