mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
fix tests
This commit is contained in:
parent
9c125e6911
commit
6b2273b905
@ -15,12 +15,12 @@ do {
|
||||
$path2 = sprintf("%s/%s%db", dirname(__FILE__), uniqid(), time());
|
||||
} while ($path1 == $path2);
|
||||
|
||||
$fp = fopen($path1, "w") or die("Can not open $path1\n");
|
||||
$fp = fopen($path1, "wb") or die("Can not open $path1\n");
|
||||
$str = "abcdefghijklmnopqrstuvwxyz\n";
|
||||
$str_len = strlen($str);
|
||||
$cnt = $size;
|
||||
while (($cnt -= $str_len) > 0) {
|
||||
fwrite($fp, $str);
|
||||
fwrite($fp, (binary)$str);
|
||||
}
|
||||
$cnt = $size - ($str_len + $cnt);
|
||||
fclose($fp);
|
||||
@ -42,3 +42,8 @@ int(65529)
|
||||
int(65529)
|
||||
string(32) "e10e3d1ae81b084b822e8592d019b57a"
|
||||
string(32) "931f0fbf8a72312e3bab9965b1d1081c"
|
||||
--UEXPECT--
|
||||
int(65529)
|
||||
int(65529)
|
||||
unicode(32) "e10e3d1ae81b084b822e8592d019b57a"
|
||||
unicode(32) "931f0fbf8a72312e3bab9965b1d1081c"
|
||||
|
Loading…
Reference in New Issue
Block a user