]> granicus.if.org Git - php/commitdiff
Fixed test
authorXinchen Hui <laruence@gmail.com>
Sun, 8 May 2016 05:04:20 +0000 (22:04 -0700)
committerXinchen Hui <laruence@gmail.com>
Sun, 8 May 2016 05:04:20 +0000 (22:04 -0700)
Zend/tests/memory_get_peak_usage.phpt

index d3d8282fbd79a26acb45544c7fe6ee2a42b02a4e..aeca95130457cb5b6d26e11886967b3bcd17d0ff 100644 (file)
@@ -2,6 +2,13 @@
 int memory_get_peak_usage ([ bool $real_usage = false ] );
 --CREDITS--
 marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
+--SKIPIF--
+<?php
+$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
+if ($zend_mm_enabled === "0") {
+    die("skip Zend MM disabled");
+}
+?>
 --INI--
 memory_limit=-1
 --FILE--