com php-src: fix test to not to cause false positives: ext/fileinfo/tests/bug68996.phpt
| From: | Anatol Belski | Date: | Wed, 30 Mar 2016 23:29:05 +0000 |
| Subject: | com php-src: fix test to not to cause false positives: ext/fileinfo/tests/bug68996.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91561@lists.php.net to get a copy of this message | ||
Commit: ed707a521738fa7269b1992a6738bfef44662f46
Author: Anatol Belski <ab@php.net> Thu, 31 Mar 2016 01:29:05 +0200
Parents: cef40c0c3fe05beb58ed8d4bc8bbf9658ab64a71
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ed707a521738fa7269b1992a6738bfef44662f46
Log:
fix test to not to cause false positives
Changed paths:
M ext/fileinfo/tests/bug68996.phpt
Diff:
diff --git a/ext/fileinfo/tests/bug68996.phpt b/ext/fileinfo/tests/bug68996.phpt
index da208d3..214e52f 100644
--- a/ext/fileinfo/tests/bug68996.phpt
+++ b/ext/fileinfo/tests/bug68996.phpt
@@ -1,11 +1,14 @@
--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(dirname(__FILE__) . '/skipif.inc'); ?>
--INI--
html_errors=1
---ENV--
-USE_ZEND_ALLOC=0
--FILE--
<?php
finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");