]> granicus.if.org Git - php/commitdiff
Fix SKIPIF conditions
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 14 Mar 2017 11:06:58 +0000 (12:06 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 14 Mar 2017 11:06:58 +0000 (12:06 +0100)
Zend/tests/overloaded_func_001.phpt
Zend/tests/overloaded_func_002.phpt
Zend/tests/traits/bug69579.phpt

index 2702772a46b2890c2e5b0acc0f34a41daec5bc08..0b7360e8f90e2eff90d087256146a1728b885917 100644 (file)
@@ -2,7 +2,7 @@
 Overloaded function 001
 --SKIPIF--
 <?php
-if (!PHP_DEBUG) die("skip only run in debug version");
+if (!class_exists('_ZendTestClass')) die("skip needs class with overloaded function");
 ?>
 --FILE--
 <?php
index 6c1696591986ca0de5584931878b9cd8a633d0a4..2762f418406dd7836991492356410918a4fd3cd1 100644 (file)
@@ -2,7 +2,7 @@
 Overloaded function 002
 --SKIPIF--
 <?php
-if (!PHP_DEBUG) die("skip only run in debug version");
+if (!class_exists('_ZendTestClass')) die("skip needs class with overloaded function");
 ?>
 --FILE--
 <?php
index 421734e74ec4a786b359946841561a004f6315d5..009bddadca74b69ec6c06cbceb8610ad1fa2cfed 100644 (file)
@@ -2,7 +2,7 @@
 Bug #69579 (Internal trait double-free)
 --SKIPIF--
 <?php
-if (!PHP_DEBUG) die("skip only run in debug version");
+if (!trait_exists('_ZendTestTrait')) die("skip requires internal trait");
 ?>
 --FILE--
 <?php