]> granicus.if.org Git - php/commitdiff
fix test to not to cause false positives
authorAnatol Belski <ab@php.net>
Wed, 30 Mar 2016 23:29:05 +0000 (01:29 +0200)
committerAnatol Belski <ab@php.net>
Wed, 30 Mar 2016 23:29:05 +0000 (01:29 +0200)
ext/fileinfo/tests/bug68996.phpt

index da208d35bcc0194b7af321f8283b951ef5d8a8ae..214e52fa6f71b506ef9deaa4cfc0b576fdb2ef58 100644 (file)
@@ -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");