diff options
Diffstat (limited to 'ext/phar/tests/invalid_alias.phpt')
-rw-r--r-- | ext/phar/tests/invalid_alias.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/tests/invalid_alias.phpt b/ext/phar/tests/invalid_alias.phpt index 97ebe0fe1a..7a3cb31575 100644 --- a/ext/phar/tests/invalid_alias.phpt +++ b/ext/phar/tests/invalid_alias.phpt @@ -6,7 +6,7 @@ Phar: set alias with invalid alias containing / \ : or ; phar.readonly=0 --FILE-- <?php -$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar'; +$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar'; $p = new Phar($fname); try { @@ -35,7 +35,7 @@ try { ===DONE=== --CLEAN-- <?php -unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar'); +unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?> --EXPECTF-- Invalid alias "hi/" specified for phar "%sinvalid_alias.phar" |