From: Brian Shire Date: Sat, 21 Nov 2009 05:38:58 +0000 (+0000) Subject: Fix phar regex test when '.php' is part of the path, instead be more specific with... X-Git-Tag: php-5.4.0alpha1~191^2~2370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2484e563e2738cd129ca8363381c24d22ec2ed96;p=php Fix phar regex test when '.php' is part of the path, instead be more specific with '.php$' regex. --- diff --git a/ext/phar/tests/phar_buildfromdirectory6.phpt b/ext/phar/tests/phar_buildfromdirectory6.phpt index 2edd0962f1..99566c1926 100644 --- a/ext/phar/tests/phar_buildfromdirectory6.phpt +++ b/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";