--TEST-- Phar: attempt to create a Phar with relative path --SKIPIF-- --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- commit(); var_dump($p->getStub()); $p->setStub(""); var_dump($p->getStub()); } catch (Exception $e) { echo $e->getMessage() . "\n"; } ?> ===DONE=== --CLEAN-- --EXPECT-- RecursiveDirectoryIterator::__construct(phar://brandnewphar.phar): failed to open dir: phar error: no directory in "phar://brandnewphar.phar", must have at least phar://brandnewphar.phar/ for root directory (always use full path to a new phar) ===DONE===