--TEST-- Phar::startBuffering()/setStub()/stopBuffering() tar-based --SKIPIF-- --INI-- phar.readonly=0 --FILE-- isFileFormat(Phar::TAR)); //var_dump($p->getStub()); var_dump($p->isBuffering()); $p->startBuffering(); var_dump($p->isBuffering()); $p['a.php'] = 'setStub(''); include 'phar://phar_begin_setstub_commit.phar/a.php'; var_dump($p->getStub()); $p['b.php'] = 'setStub('getStub()); $p->stopBuffering(); echo "===COMMIT===\n"; var_dump($p->isBuffering()); include 'phar://phar_begin_setstub_commit.phar/a.php'; include 'phar://phar_begin_setstub_commit.phar/b.php'; var_dump($p->getStub()); ?> ===DONE=== --CLEAN-- --EXPECTF-- bool(true) bool(false) bool(true) string(5) "Hello" string(%d) " " string(5) "World" string(%d) " " ===COMMIT=== bool(false) string(5) "Hello" string(5) "World" string(%d) " " ===DONE===