Skip to content

Commit b452d59

Browse files
committed
Fix bug68996.phpt test
The function name gets printed here now, with illegal chars substituted in the arg. This slipped through previously, because the test only runs under USE_ZEND_ALLOC=0. We remove that check as well, because the test behaves the same regardless of which allocator is used, even if the original bug only reproduces under USE_ZEND_ALLOC=0.
1 parent a07e75a commit b452d59

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ext/fileinfo/tests/bug68996.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
--TEST--
22
Bug #68996 (Invalid free of CG(interned_empty_string))
33
--SKIPIF--
4-
<?php
5-
if (getenv("USE_ZEND_ALLOC") !== "0") {
6-
print "skip Need Zend MM disabled";
7-
}
8-
?>
94
<?php require_once(__DIR__ . '/skipif.inc'); ?>
105
--INI--
116
html_errors=1
@@ -15,8 +10,8 @@ finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");
1510
?>
1611
--EXPECTF--
1712
<br />
18-
<b>Warning</b>: : Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
13+
<b>Warning</b>: finfo_open(%s�c): Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
1914
<br />
20-
<b>Warning</b>: : Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
15+
<b>Warning</b>: finfo_open(%s�c): Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
2116
<br />
2217
<b>Warning</b>: finfo_open(): Failed to load magic database at '%s�c'. in <b>%sbug68996.php</b> on line <b>%d</b><br />

0 commit comments

Comments
 (0)