Skip to content

Commit fce05b8

Browse files
committed
Use a test file filled with random bytes to make the test more strict
1 parent 45fbb89 commit fce05b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/zend_test/tests/gh10370.tar

-8.5 KB
Binary file not shown.

ext/zend_test/tests/gh10370_1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370' . DIRECTORY_SEPARAT
2121
?>
2222
--EXPECT--
2323
bool(true)
24-
string(40) "34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c"
24+
string(40) "a723ae4ec7eababff73ca961a771b794be6388d2"
2525
--CLEAN--
2626
<?php
2727
@unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370' . DIRECTORY_SEPARATOR . 'testfile');

ext/zend_test/tests/gh10370_2.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar'));
2222
var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_out.tar'));
2323
?>
2424
--EXPECT--
25-
string(40) "04929d1dee68551c74f5c9809691040d16ba854b"
26-
string(40) "04929d1dee68551c74f5c9809691040d16ba854b"
25+
string(40) "edcad8cd6c276f5e318c826ad77a5604d6a6e93d"
26+
string(40) "edcad8cd6c276f5e318c826ad77a5604d6a6e93d"
2727
--CLEAN--
2828
<?php
2929
@unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_out.tar');

0 commit comments

Comments
 (0)