File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Protect against null bytes in LOB filenames (http://news.php.net/php.internals/50202)
2
+ Protect against null bytes in LOB filenames
3
3
--SKIPIF--
4
4
<?php if (!extension_loaded ('oci8 ' )) die ("skip no oci8 extension " ); ?>
5
5
--INI--
@@ -8,6 +8,10 @@ error_reporting = E_WARNING
8
8
--FILE--
9
9
<?php
10
10
11
+ // See http://news.php.net/php.internals/50202
12
+ // http://svn.php.net/viewvc?view=revision&revision=311870
13
+
14
+
11
15
require (dirname (__FILE__ ).'/connect.inc ' );
12
16
13
17
// Run Test
@@ -29,10 +33,10 @@ var_dump($r);
29
33
--EXPECTF--
30
34
Test 1: Import
31
35
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
34
38
Test 2: Export
35
39
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
38
42
===DONE===
You can’t perform that action at this time.
0 commit comments