mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
- Use INI sections - Use CGI sections - Move data into a subfolder - Remove ZPP tests - Fix various bugs within tests - Simplify some Found while working on #18879
55 lines
955 B
PHP
55 lines
955 B
PHP
--TEST--
|
|
gzfile() with various invalid params
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(gzfile(__DIR__."/gzfile-mb私はガラスを食べられます.txt.gz"));
|
|
var_dump(gzfile(__DIR__."/gzfile-mb私はガラスを食べられます.txt.gz", true));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
array(6) {
|
|
[0]=>
|
|
string(36) "When you're taught through feelings
|
|
"
|
|
[1]=>
|
|
string(26) "Destiny flying high above
|
|
"
|
|
[2]=>
|
|
string(38) "all I know is that you can realize it
|
|
"
|
|
[3]=>
|
|
string(18) "Destiny who cares
|
|
"
|
|
[4]=>
|
|
string(19) "as it turns around
|
|
"
|
|
[5]=>
|
|
string(39) "and I know that it descends down on me
|
|
"
|
|
}
|
|
array(6) {
|
|
[0]=>
|
|
string(36) "When you're taught through feelings
|
|
"
|
|
[1]=>
|
|
string(26) "Destiny flying high above
|
|
"
|
|
[2]=>
|
|
string(38) "all I know is that you can realize it
|
|
"
|
|
[3]=>
|
|
string(18) "Destiny who cares
|
|
"
|
|
[4]=>
|
|
string(19) "as it turns around
|
|
"
|
|
[5]=>
|
|
string(39) "and I know that it descends down on me
|
|
"
|
|
}
|
|
Done
|