sfox            Mon Jul  7 01:09:22 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/phar/tests     open_for_write_existing_b_5_2.phpt 
                                open_for_write_existing_c_5_2.phpt 
                                open_for_write_newfile_b_5_2.phpt 
                                open_for_write_newfile_c_5_2.phpt 
                                phar_extract3.phpt 
    /php-src/ext/phar/tests/tar open_for_write_existing_b_5_2.phpt 
                                open_for_write_existing_c_5_2.phpt 
                                open_for_write_newfile_b_5_2.phpt 
                                open_for_write_newfile_c_5_2.phpt 
    /php-src/ext/phar/tests/zip open_for_write_existing_b_5_2.phpt 
                                open_for_write_existing_c_5_2.phpt 
                                open_for_write_newfile_b_5_2.phpt 
                                open_for_write_newfile_c_5_2.phpt 
    /php-src/ext/phar/tests/files       notbogus.zip 

  Modified files:              
    /php-src/ext/phar/tests     open_for_write_existing_b.phpt 
                                open_for_write_existing_c.phpt 
                                open_for_write_newfile_b.phpt 
                                open_for_write_newfile_c.phpt 
    /php-src/ext/phar/tests/tar open_for_write_existing_b.phpt 
                                open_for_write_existing_c.phpt 
                                open_for_write_newfile_b.phpt 
                                open_for_write_newfile_c.phpt 
    /php-src/ext/phar/tests/zip open_for_write_existing_b.phpt 
                                open_for_write_existing_c.phpt 
                                open_for_write_newfile_b.phpt 
                                open_for_write_newfile_c.phpt 
  Log:
  Duplicate tests to accommodate parameter parsing fixes in 5_3 core
  (NB the 5_2 tests will fail currently due to name changes, will fix tomorrow)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_existing_b.phpt?r1=1.10&r2=1.10.2.1&diff_format=u
Index: php-src/ext/phar/tests/open_for_write_existing_b.phpt
diff -u php-src/ext/phar/tests/open_for_write_existing_b.phpt:1.10 
php-src/ext/phar/tests/open_for_write_existing_b.phpt:1.10.2.1
--- php-src/ext/phar/tests/open_for_write_existing_b.phpt:1.10  Wed Feb 20 
13:11:38 2008
+++ php-src/ext/phar/tests/open_for_write_existing_b.phpt       Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file)
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -35,8 +38,8 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_b.phar.php/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%spen_for_write_existing_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_existing_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%spen_for_write_existing_b.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_existing_b.php on line %d
 This is b/c
-===DONE===
\ No newline at end of file
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_existing_c.phpt?r1=1.5&r2=1.5.2.1&diff_format=u
Index: php-src/ext/phar/tests/open_for_write_existing_c.phpt
diff -u php-src/ext/phar/tests/open_for_write_existing_c.phpt:1.5 
php-src/ext/phar/tests/open_for_write_existing_c.phpt:1.5.2.1
--- php-src/ext/phar/tests/open_for_write_existing_c.phpt:1.5   Wed Feb 20 
13:11:38 2008
+++ php-src/ext/phar/tests/open_for_write_existing_c.phpt       Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file)
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -29,8 +32,8 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_c.phar.php/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 This is b/c
-===DONE===
\ No newline at end of file
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_newfile_b.phpt?r1=1.10&r2=1.10.2.1&diff_format=u
Index: php-src/ext/phar/tests/open_for_write_newfile_b.phpt
diff -u php-src/ext/phar/tests/open_for_write_newfile_b.phpt:1.10 
php-src/ext/phar/tests/open_for_write_newfile_b.phpt:1.10.2.1
--- php-src/ext/phar/tests/open_for_write_newfile_b.phpt:1.10   Wed Feb 20 
13:11:38 2008
+++ php-src/ext/phar/tests/open_for_write_newfile_b.phpt        Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file)
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -37,9 +40,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line 20
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_b.phar.php" in %sopen_for_write_newfile_b.php on line 
22
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_newfile_c.phpt?r1=1.5&r2=1.5.2.1&diff_format=u
Index: php-src/ext/phar/tests/open_for_write_newfile_c.phpt
diff -u php-src/ext/phar/tests/open_for_write_newfile_c.phpt:1.5 
php-src/ext/phar/tests/open_for_write_newfile_c.phpt:1.5.2.1
--- php-src/ext/phar/tests/open_for_write_newfile_c.phpt:1.5    Wed Feb 20 
13:11:38 2008
+++ php-src/ext/phar/tests/open_for_write_newfile_c.phpt        Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file)
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -31,9 +34,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_c.phar.php" in %sopen_for_write_newfile_c.php on line 
%d
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt?r1=1.2&r2=1.2.2.1&diff_format=u
Index: php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt
diff -u php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt:1.2 
php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt:1.2.2.1
--- php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt:1.2       Tue Feb 
12 16:39:58 2008
+++ php-src/ext/phar/tests/tar/open_for_write_existing_b.phpt   Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file) tar-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -48,9 +51,9 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_b.phar.tar/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_existing_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%spen_for_write_existing_b.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_existing_b.php on line %d
 This is b/c
 
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt?r1=1.2&r2=1.2.2.1&diff_format=u
Index: php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt
diff -u php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt:1.2 
php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt:1.2.2.1
--- php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt:1.2       Tue Feb 
12 16:39:58 2008
+++ php-src/ext/phar/tests/tar/open_for_write_existing_c.phpt   Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file) tar-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -42,9 +45,9 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_c.phar.tar/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 This is b/c
 
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt?r1=1.3&r2=1.3.2.1&diff_format=u
Index: php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt
diff -u php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt:1.3 
php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt:1.3.2.1
--- php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt:1.3        Tue Feb 
12 16:39:58 2008
+++ php-src/ext/phar/tests/tar/open_for_write_newfile_b.phpt    Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file) tar-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -49,9 +52,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_b.phar.tar" in %sopen_for_write_newfile_b.php on line 
%d
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt?r1=1.3&r2=1.3.2.1&diff_format=u
Index: php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt
diff -u php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt:1.3 
php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt:1.3.2.1
--- php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt:1.3        Tue Feb 
12 16:39:58 2008
+++ php-src/ext/phar/tests/tar/open_for_write_newfile_c.phpt    Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file) tar-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -42,9 +45,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_c.phar.tar" in %sopen_for_write_newfile_c.php on line 
%d
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt?r1=1.4&r2=1.4.2.1&diff_format=u
Index: php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt
diff -u php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt:1.4 
php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt:1.4.2.1
--- php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt:1.4       Mon Feb 
11 20:55:42 2008
+++ php-src/ext/phar/tests/zip/open_for_write_existing_b.phpt   Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file) zip-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -45,8 +48,8 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_b.phar.zip/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%spen_for_write_existing_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%spen_for_write_existing_b.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_b.php on line %d
 This is b/c
-===DONE===
\ No newline at end of file
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt?r1=1.4&r2=1.4.2.1&diff_format=u
Index: php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt
diff -u php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt:1.4 
php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt:1.4.2.1
--- php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt:1.4       Mon Feb 
11 20:55:42 2008
+++ php-src/ext/phar/tests/zip/open_for_write_existing_c.phpt   Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (existing file) zip-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -39,8 +42,8 @@
 
 Warning: fopen(phar://%sopen_for_write_existing_c.phar.zip/b/c.php): failed to 
open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_existing_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_existing_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%spen_for_write_existing_c.php on line %d
 This is b/c
-===DONE===
\ No newline at end of file
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt?r1=1.4&r2=1.4.2.1&diff_format=u
Index: php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt
diff -u php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt:1.4 
php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt:1.4.2.1
--- php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt:1.4        Mon Feb 
11 20:55:42 2008
+++ php-src/ext/phar/tests/zip/open_for_write_newfile_b.phpt    Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file) zip-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -48,9 +51,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_b.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_b.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_b.phar.zip" in %sopen_for_write_newfile_b.php on line 
%d
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt?r1=1.4&r2=1.4.2.1&diff_format=u
Index: php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt
diff -u php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt:1.4 
php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt:1.4.2.1
--- php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt:1.4        Mon Feb 
11 20:55:42 2008
+++ php-src/ext/phar/tests/zip/open_for_write_newfile_c.phpt    Mon Jul  7 
01:09:21 2008
@@ -1,7 +1,10 @@
 --TEST--
 Phar: fopen a .phar for writing (new file) zip-based
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or 
later");
+?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -42,9 +45,9 @@
 
 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed 
to open stream: phar error: write operations disabled by INI setting in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fwrite(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fwrite() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 
-Warning: fclose(): supplied argument is not a valid stream resource in 
%sopen_for_write_newfile_c.php on line %d
+Warning: fclose() expects parameter 1 to be resource, boolean given in 
%sopen_for_write_newfile_c.php on line %d
 This is b/c
 
 Warning: include(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed 
to open stream: phar error: "b/new.php" is not a file in phar 
"%sopen_for_write_newfile_c.phar.zip" in %sopen_for_write_newfile_c.php on line 
%d

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_existing_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/open_for_write_existing_b_5_2.phpt
+++ php-src/ext/phar/tests/open_for_write_existing_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_existing_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/open_for_write_existing_c_5_2.phpt
+++ php-src/ext/phar/tests/open_for_write_existing_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_newfile_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/open_for_write_newfile_b_5_2.phpt
+++ php-src/ext/phar/tests/open_for_write_newfile_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/open_for_write_newfile_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/open_for_write_newfile_c_5_2.phpt
+++ php-src/ext/phar/tests/open_for_write_newfile_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/phar_extract3.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/phar_extract3.phpt
+++ php-src/ext/phar/tests/phar_extract3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_existing_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/tar/open_for_write_existing_b_5_2.phpt
+++ php-src/ext/phar/tests/tar/open_for_write_existing_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_existing_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/tar/open_for_write_existing_c_5_2.phpt
+++ php-src/ext/phar/tests/tar/open_for_write_existing_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_newfile_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/tar/open_for_write_newfile_b_5_2.phpt
+++ php-src/ext/phar/tests/tar/open_for_write_newfile_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/open_for_write_newfile_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/tar/open_for_write_newfile_c_5_2.phpt
+++ php-src/ext/phar/tests/tar/open_for_write_newfile_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_existing_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/open_for_write_existing_b_5_2.phpt
+++ php-src/ext/phar/tests/zip/open_for_write_existing_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_existing_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/open_for_write_existing_c_5_2.phpt
+++ php-src/ext/phar/tests/zip/open_for_write_existing_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_newfile_b_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/open_for_write_newfile_b_5_2.phpt
+++ php-src/ext/phar/tests/zip/open_for_write_newfile_b_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/open_for_write_newfile_c_5_2.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/open_for_write_newfile_c_5_2.phpt
+++ php-src/ext/phar/tests/zip/open_for_write_newfile_c_5_2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/files/notbogus.zip?view=markup&rev=1.1
Index: php-src/ext/phar/tests/files/notbogus.zip
+++ php-src/ext/phar/tests/files/notbogus.zip

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

Reply via email to