Skip to content

Commit 0a4ec69

Browse files
committed
Update tests to match Felipe's null byte arg parsing change
1 parent ac86bf8 commit 0a4ec69

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ext/oci8/tests/null_byte_1.phpt

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Protect against null bytes in LOB filenames (http://news.php.net/php.internals/50202)
2+
Protect against null bytes in LOB filenames
33
--SKIPIF--
44
<?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
55
--INI--
@@ -8,6 +8,10 @@ error_reporting = E_WARNING
88
--FILE--
99
<?php
1010

11+
// See http://news.php.net/php.internals/50202
12+
// http://svn.php.net/viewvc?view=revision&revision=311870
13+
14+
1115
require(dirname(__FILE__).'/connect.inc');
1216

1317
// Run Test
@@ -29,10 +33,10 @@ var_dump($r);
2933
--EXPECTF--
3034
Test 1: Import
3135

32-
Warning: OCI-Lob::savefile(): Filename cannot contain null bytes in %snull_byte_1.php on line %d
33-
bool(false)
36+
Warning: OCI-Lob::savefile() expects parameter 1 to be valid path, string given in %snull_byte_1.php on line %d
37+
NULL
3438
Test 2: Export
3539

36-
Warning: OCI-Lob::export(): Filename cannot contain null bytes in %snull_byte_1.php on line %d
37-
bool(false)
40+
Warning: OCI-Lob::export() expects parameter 1 to be valid path, string given in %snull_byte_1.php on line %d
41+
NULL
3842
===DONE===

0 commit comments

Comments
 (0)