]> granicus.if.org Git - php/commitdiff
- Added UEXPECTF
authorFelipe Pena <felipe@php.net>
Sun, 18 May 2008 00:47:22 +0000 (00:47 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 18 May 2008 00:47:22 +0000 (00:47 +0000)
ext/phar/tests/zip/refcount1.phpt

index 6f2db37d5a78e2cdcfd8e0e5b9428e0b13dac205..ba1a32361ea9820d77e6d1744478a96d90de7d86 100644 (file)
@@ -49,6 +49,27 @@ include $alias . '/b/c.php';
 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
 --EXPECTF--
 ===CLOSE===
+object(PharFileInfo)#%d (2) {
+  ["pathName":"SplFileInfo":private]=>
+  string(%d) "phar://%srefcount1.phar.zip/b"
+  ["fileName":"SplFileInfo":private]=>
+  string(%d) "phar://%srefcount1.phar.zip/b/c.php"
+}
+string(5) "extra"
+===UNLINK===
+
+Warning: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.zip", has open file pointers, cannot unlink in %srefcount1.php on line %d
+object(PharFileInfo)#%d (2) {
+  ["pathName":"SplFileInfo":private]=>
+  string(%d) "phar://%srefcount1.phar.zip/b"
+  ["fileName":"SplFileInfo":private]=>
+  string(%s) "phar://%srefcount1.phar.zip/b/c.php"
+}
+string(5) "extra"
+extra
+===DONE===
+--UEXPECTF--
+===CLOSE===
 object(PharFileInfo)#%d (2) {
   [u"pathName":u"SplFileInfo":private]=>
   string(%d) "phar://%srefcount1.phar.zip/b"