xref: /PHP-5.6/ext/fileinfo/tests/bug68996.phpt (revision ed707a52)
1--TEST--
2Bug #68996 (Invalid free of CG(interned_empty_string))
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") !== "0") {
6    print "skip Need Zend MM disabled";
7}
8?>
9<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
10--INI--
11html_errors=1
12--FILE--
13<?php
14finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");
15?>
16--EXPECTF--
17<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 />
19<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 />
21<br />
22<b>Warning</b>:  finfo_open(): Failed to load magic database at '%s�c'. in <b>%sbug68996.php</b> on line <b>%d</b><br />
23