blob: b76515a178d95a9069c343af94b700ec7ee10c06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
bzopen(): throw TypeError if filename contains null bytes
--EXTENSIONS--
bz2
--FILE--
<?php
try {
bzopen("file\0", "w");
} catch (TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
try {
bzopen("file\0", "r");
} catch (TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
bzopen(): Argument #1 ($file) must not contain null bytes
bzopen(): Argument #1 ($file) must not contain null bytes
|