com php-src: Fix SKIPIF conditions: Zend/tests/overloaded_fun c_001.phpt Zend/tests/overloaded_func_002 .phpt Zend/tests/traits/bug69579.phpt

[email protected] (Nikita Popov)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    16ae9f82e82e2aea5d7deaf8f9a9c825a56dfcc1
Author:    Nikita Popov <[email protected]>         Tue, 14 Mar 2017 12:06:58 +0100
Parents:   edcabf6d070fd21d7681345fa90976f40c8f564e
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=16ae9f82e82e2aea5d7deaf8f9a9c825a56dfcc1

Log:
Fix SKIPIF conditions

Changed paths:
  M  Zend/tests/overloaded_func_001.phpt
  M  Zend/tests/overloaded_func_002.phpt
  M  Zend/tests/traits/bug69579.phpt


Diff:
diff --git a/Zend/tests/overloaded_func_001.phpt b/Zend/tests/overloaded_func_001.phpt
index 2702772..0b7360e 100644
--- a/Zend/tests/overloaded_func_001.phpt
+++ b/Zend/tests/overloaded_func_001.phpt
@@ -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
diff --git a/Zend/tests/overloaded_func_002.phpt b/Zend/tests/overloaded_func_002.phpt
index 6c16965..2762f41 100644
--- a/Zend/tests/overloaded_func_002.phpt
+++ b/Zend/tests/overloaded_func_002.phpt
@@ -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
diff --git a/Zend/tests/traits/bug69579.phpt b/Zend/tests/traits/bug69579.phpt
index 421734e..009bdda 100644
--- a/Zend/tests/traits/bug69579.phpt
+++ b/Zend/tests/traits/bug69579.phpt
@@ -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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.