svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt
trunk/ext/standard/tests/file/bug39863.phpt
| From: | Christopher Jones | Date: | Sat, 05 Jun 2010 19:44:48 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt trunk/ext/standard/tests/file/bug39863.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-62817@lists.php.net to get a copy of this message | ||
sixd Sat, 05 Jun 2010 19:44:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300213
Log:
New test for file_exists (bug #39863). It currently xfail's
Bug: http://bugs.php.net/39863 (Open) file_exists() silently
truncates after a null byte
Changed paths:
A php/php-src/branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt
A php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt
A php/php-src/trunk/ext/standard/tests/file/bug39863.phpt
Added: php/php-src/branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt (rev
0)
+++ php/php-src/branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt 2010-06-05 19:44:48 UTC (rev
300213)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #39863 (file_exists() silently truncates after a null byte)
+--CREDITS--
+Andrew van der Stock, vanderaj @ owasp.org
+--FILE--
+<?php
+
+$filename = __FILE__ . chr(0). ".ridiculous";
+
+if (file_exists($filename)) {
+ echo "FAIL\n";
+}
+else {
+ echo "PASS\n";
+}
+?>
+===DONE===
+<?php exit(0); ?>
+--XFAIL--
+Needs bug #39863 fixed
+--EXPECT--
+PASS
+===DONE===
+
Property changes on: php/php-src/branches/PHP_5_2/ext/standard/tests/file/bug39863.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Added: php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt (rev
0)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt 2010-06-05 19:44:48 UTC (rev
300213)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #39863 (file_exists() silently truncates after a null byte)
+--CREDITS--
+Andrew van der Stock, vanderaj @ owasp.org
+--FILE--
+<?php
+
+$filename = __FILE__ . chr(0). ".ridiculous";
+
+if (file_exists($filename)) {
+ echo "FAIL\n";
+}
+else {
+ echo "PASS\n";
+}
+?>
+===DONE===
+<?php exit(0); ?>
+--XFAIL--
+Needs bug #39863 fixed
+--EXPECT--
+PASS
+===DONE===
+
Property changes on: php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug39863.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Added: php/php-src/trunk/ext/standard/tests/file/bug39863.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/bug39863.phpt (rev 0)
+++ php/php-src/trunk/ext/standard/tests/file/bug39863.phpt 2010-06-05 19:44:48 UTC (rev 300213)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #39863 (file_exists() silently truncates after a null byte)
+--CREDITS--
+Andrew van der Stock, vanderaj @ owasp.org
+--FILE--
+<?php
+
+$filename = __FILE__ . chr(0). ".ridiculous";
+
+if (file_exists($filename)) {
+ echo "FAIL\n";
+}
+else {
+ echo "PASS\n";
+}
+?>
+===DONE===
+<?php exit(0); ?>
+--XFAIL--
+Needs bug #39863 fixed
+--EXPECT--
+PASS
+===DONE===
+
Property changes on: php/php-src/trunk/ext/standard/tests/file/bug39863.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native