/* Decoded by unphp.net */ --TEST-- Phar::setStub()/getStub() from file --EXTENSIONS-- phar --INI-- phar.require_hash=0 phar.readonly=0 allow_url_fopen=1 --FILE-- '; $file = $stub; $files = array(); $files['a'] = 'a'; $files['b'] = 'b'; $files['c'] = 'c'; include 'files/phar_test.inc'; $phar = new Phar($fname); var_dump($stub); var_dump($phar->getStub()); var_dump($phar->getStub() == $stub); $stub = ''; $sexp = $stub . " "; $stub = fopen('data://,'.$stub, 'r'); $phar->setStub($stub); var_dump($phar->getStub()); var_dump($phar->getStub() == $stub); var_dump($phar->getStub() == $sexp); $phar->stopBuffering(); var_dump($phar->getStub()); var_dump($phar->getStub() == $stub); var_dump($phar->getStub() == $sexp); $phar = new Phar($fname); var_dump($phar->getStub() == $stub); var_dump($phar->getStub() == $sexp); ?> --CLEAN-- --EXPECT-- string(48) "" string(48) "" bool(true) string(51) " " bool(false) bool(true) string(51) " " bool(false) bool(true) bool(false) bool(true)