From 22d05677c1552ce822ad3f9a3bd9f86098126744 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Tue, 12 Feb 2008 05:30:59 +0000 Subject: [PATCH] fix test (all tests pass on unix now) --- ext/phar/tests/zip/phar_stub_error.phpt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ext/phar/tests/zip/phar_stub_error.phpt b/ext/phar/tests/zip/phar_stub_error.phpt index 50d0cb1b01..268130df40 100755 --- a/ext/phar/tests/zip/phar_stub_error.phpt +++ b/ext/phar/tests/zip/phar_stub_error.phpt @@ -11,7 +11,7 @@ phar.readonly=0 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip'; $phar = new Phar($fname); -$phar->setStub($stub = ''); +$phar->setStub($stub = '' . "\r\n"); $phar->setAlias('hio'); $phar['a'] = 'a'; $phar->stopBuffering(); @@ -43,12 +43,16 @@ unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip') __HALT_COMPILER(); ?> --EXPECTF-- -string(48) "" -string(48) "" +string(50) " +" +string(50) " +" bool(true) Exception: illegal stub for zip-based phar "%sphar_stub_error.phar.zip" -string(48) "" +string(50) " +" bool(true) -string(48) "" +string(50) " +" bool(true) ===DONE=== -- 2.40.0