From: Nikita Popov Date: Sat, 9 May 2020 09:53:39 +0000 (+0200) Subject: Fix bug68996.phpt test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b452d5923de3bfef3268bcea289d59d6bc789437;p=php 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. --- diff --git a/ext/fileinfo/tests/bug68996.phpt b/ext/fileinfo/tests/bug68996.phpt index 83f2765408..aabd2670bd 100644 --- a/ext/fileinfo/tests/bug68996.phpt +++ b/ext/fileinfo/tests/bug68996.phpt @@ -1,11 +1,6 @@ --TEST-- Bug #68996 (Invalid free of CG(interned_empty_string)) --SKIPIF-- - --INI-- html_errors=1 @@ -15,8 +10,8 @@ finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63"); ?> --EXPECTF--
-Warning: : Failed to open stream: No such file or directory in %sbug68996.php on line %d
+Warning: finfo_open(%s�c): Failed to open stream: No such file or directory in %sbug68996.php on line %d

-Warning: : Failed to open stream: No such file or directory in %sbug68996.php on line %d
+Warning: finfo_open(%s�c): Failed to open stream: No such file or directory in %sbug68996.php on line %d

Warning: finfo_open(): Failed to load magic database at '%s�c'. in %sbug68996.php on line %d