--TEST-- Phar::startBuffering()/setStub()/stopBuffering() --SKIPIF-- --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- 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()); ?> --CLEAN-- --EXPECTF-- 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) " "