]> granicus.if.org Git - php/commitdiff
Fix bug68996.phpt test
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 9 May 2020 09:53:39 +0000 (11:53 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 9 May 2020 09:53:39 +0000 (11:53 +0200)
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.

ext/fileinfo/tests/bug68996.phpt

index 83f276540819ff6ede64ceed515f9710b5dc2874..aabd2670bdc08f8549a5b2ede19e0d395b15a3eb 100644 (file)
@@ -1,11 +1,6 @@
 --TEST--
 Bug #68996 (Invalid free of CG(interned_empty_string))
 --SKIPIF--
-<?php
-if (getenv("USE_ZEND_ALLOC") !== "0") {
-    print "skip Need Zend MM disabled";
-}
-?>
 <?php require_once(__DIR__ . '/skipif.inc'); ?>
 --INI--
 html_errors=1
@@ -15,8 +10,8 @@ finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");
 ?>
 --EXPECTF--
 <br />
-<b>Warning</b>:  : Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
+<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 />
 <br />
-<b>Warning</b>:  : Failed to open stream: No such file or directory in <b>%sbug68996.php</b> on line <b>%d</b><br />
+<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 />
 <br />
 <b>Warning</b>:  finfo_open(): Failed to load magic database at '%s�c'. in <b>%sbug68996.php</b> on line <b>%d</b><br />