--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://brandnewphar.phar/a.php'; var_dump($p->getStub()); $p['b.php'] = 'setStub('getStub()); $p->stopBuffering(); echo "===COMMIT===\n"; var_dump($p->isBuffering()); include 'phar://brandnewphar.phar/a.php'; include 'phar://brandnewphar.phar/b.php'; var_dump($p->getStub()); ?> ===DONE=== --CLEAN-- --EXPECT-- bool(true) bool(false) bool(true) string(5) "Hello" string(84) " " string(5) "World" string(85) " " ===COMMIT=== bool(false) string(5) "Hello" string(5) "World" string(85) " " ===DONE===