cellog          Tue Oct 14 00:38:11 2008 UTC

  Modified files:              
    /php-src/ext/phar/tests/cache_list  copyonwrite25.phar.phpt 
    /php-src/ext/phar/tests/cache_list/files    write25.phar 
                                                write25.phar.inc 
  Log:
  MFB: last test for cached phar copy on write (forgot this one yesterday)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/cache_list/copyonwrite25.phar.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/phar/tests/cache_list/copyonwrite25.phar.phpt
diff -u /dev/null php-src/ext/phar/tests/cache_list/copyonwrite25.phar.phpt:1.2
--- /dev/null   Tue Oct 14 00:38:11 2008
+++ php-src/ext/phar/tests/cache_list/copyonwrite25.phar.phpt   Tue Oct 14 
00:38:11 2008
@@ -0,0 +1,16 @@
+--TEST--
+Phar: copy-on-write test 25 [cache_list]
+--INI--
+default_charset=UTF-8
+phar.cache_list={PWD}/copyonwrite25.phar.php
+phar.readonly=0
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
+--FILE_EXTERNAL--
+files/write25.phar
+--EXPECTF--
+bool(false)
+bool(true)
+<?php __HALT_COMPILER();
+ok
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/cache_list/files/write25.phar?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/phar/tests/cache_list/files/write25.phar
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/cache_list/files/write25.phar.inc?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/phar/tests/cache_list/files/write25.phar.inc
diff -u /dev/null php-src/ext/phar/tests/cache_list/files/write25.phar.inc:1.2
--- /dev/null   Tue Oct 14 00:38:11 2008
+++ php-src/ext/phar/tests/cache_list/files/write25.phar.inc    Tue Oct 14 
00:38:11 2008
@@ -0,0 +1,16 @@
+<?php
+
+$fname = dirname(__FILE__) . '/write25.phar';
[EMAIL PROTECTED]($fname);
+
+$phar = new Phar($fname);
+$phar->setStub('<?php
+$p = new Phar(__FILE__);
+var_dump(isset($p["mounted"]));
+Phar::mount("mounted", "phar://" . __FILE__ . "/test.txt");
+var_dump(isset($p["mounted"]));
+echo $p["mounted"]->getContent(),"\nok\n";
+__HALT_COMPILER();
+?>');
+$phar['test.txt'] = "<?php __HALT"."_COMPILER();";
+?>



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to