]> granicus.if.org Git - php/commitdiff
Update tests to match Felipe's null byte arg parsing change
authorChristopher Jones <sixd@php.net>
Tue, 7 Jun 2011 20:58:08 +0000 (20:58 +0000)
committerChristopher Jones <sixd@php.net>
Tue, 7 Jun 2011 20:58:08 +0000 (20:58 +0000)
ext/oci8/tests/null_byte_1.phpt

index 1439bd5d66272860dc877b414167aab861904d4b..6b1529038a3eec9bbdead38aaf6c19cc7ea9c4df 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Protect against null bytes in LOB filenames (http://news.php.net/php.internals/50202)
+Protect against null bytes in LOB filenames
 --SKIPIF--
 <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
 --INI--
@@ -8,6 +8,10 @@ error_reporting = E_WARNING
 --FILE--
 <?php
 
+// See http://news.php.net/php.internals/50202
+//     http://svn.php.net/viewvc?view=revision&revision=311870
+
+
 require(dirname(__FILE__).'/connect.inc');
 
 // Run Test
@@ -29,10 +33,10 @@ var_dump($r);
 --EXPECTF--
 Test 1: Import
 
-Warning: OCI-Lob::savefile(): Filename cannot contain null bytes in %snull_byte_1.php on line %d
-bool(false)
+Warning: OCI-Lob::savefile() expects parameter 1 to be valid path, string given in %snull_byte_1.php on line %d
+NULL
 Test 2: Export
 
-Warning: OCI-Lob::export(): Filename cannot contain null bytes in %snull_byte_1.php on line %d
-bool(false)
+Warning: OCI-Lob::export() expects parameter 1 to be valid path, string given in %snull_byte_1.php on line %d
+NULL
 ===DONE===