Skip to content

Commit 880a6ce

Browse files
committed
Skip test while zend mm is disabled
1 parent 14cebef commit 880a6ce

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

ext/oci8/tests/pecl_bug10194.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
55
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
66
require(dirname(__FILE__).'/skipif.inc');
77
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
8+
if (getenv("USE_ZEND_ALLOC") === "0") {
9+
die("skip Zend MM disabled");
10+
}
811
?>
912
--INI--
1013
memory_limit=10M

ext/oci8/tests/pecl_bug10194_blob_64.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on t
66
require(dirname(__FILE__).'/skipif.inc');
77
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
88
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
9+
if (getenv("USE_ZEND_ALLOC") === "0") {
10+
die("skip Zend MM disabled");
11+
}
912
?>
1013
--INI--
1114
memory_limit=6M

tests/lang/bug45392.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Bug #45392 (ob_start()/ob_end_clean() and memory_limit)
33
--INI--
44
display_errors=stderr
5+
--SKIPIF--
6+
<?php
7+
if (getenv("USE_ZEND_ALLOC") === "0") {
8+
die("skip Zend MM disabled");
9+
}
510
--FILE--
611
<?php
712
echo __LINE__ . "\n";

0 commit comments

Comments
 (0)