--TEST-- Phar: create with illegal path --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=1 --FILE-- getMessage() . "\n"; } } ?> ===DONE=== --CLEAN-- --EXPECTF-- string(5) "query" string(5) "query" Error: file_put_contents(phar://%s//): failed to open stream: phar error: invalid path "/" contains empty directory Error: file_put_contents(phar://%s/.): failed to open stream: phar error: invalid path "." contains current directory reference Error: file_put_contents(phar://%s/../): failed to open stream: phar error: invalid path "../" contains empty directory Error: file_put_contents(phar://%s/a/..): failed to open stream: phar error: invalid path "a/.." contains upper directory reference Error: file_put_contents(phar://%s/a/): failed to open stream: phar error: invalid path "a/" contains empty directory Error: file_put_contents(phar://%s/b//a.php): failed to open stream: phar error: invalid path "b//a.php" contains double slash Exception: Entry a does not exist and cannot be created: phar error: invalid path "a" contains illegal character ===DONE===