com php-src: Give a reason why the test was skipped: Zend/tests/bug76337.phpt Zend/tests/overloaded_func_00 1.phpt Zend/tests/overloaded_func_002.phpt
Zend/tests/return_types/internal_functions001.phpt Zend/tests/return_types/internal_functions002.ph pt
Zend/tests/return_types/internal_functions003. phpt Zend/tests/traits/bug69579.phpt ext/opcach e/tests/bug76337.phpt
| From: | Gabriel Caruso | Date: | Mon, 30 Jul 2018 12:03:21 +0000 |
| Subject: | com php-src: Give a reason why the test was skipped: Zend/tests/bug76337.phpt Zend/tests/overloaded_func_00 1.phpt Zend/tests/overloaded_func_002.phpt Zend/tests/return_types/internal_functions001.phpt Zend/tests/return_types/internal_functions002.ph pt Zend/tests/return_types/internal_functions003. phpt Zend/tests/traits/bug69579.phpt ext/opcach e/tests/bug76337.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102729@lists.php.net to get a copy of this message | ||
Commit: 4a1336de7c93fd6504fcad26b0b048db4b0ca885
Author: Gabriel Caruso <carusogabriel34@gmail.com> Sun, 29 Jul 2018 13:44:22 -0300
Parents: 745f6627bd293ec3efd4e1b28fee159cfb66b639
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a1336de7c93fd6504fcad26b0b048db4b0ca885
Log:
Give a reason why the test was skipped
Changed paths:
D Zend/tests/bug76337.phpt
M Zend/tests/overloaded_func_001.phpt
M Zend/tests/overloaded_func_002.phpt
M Zend/tests/return_types/internal_functions001.phpt
M Zend/tests/return_types/internal_functions002.phpt
M Zend/tests/return_types/internal_functions003.phpt
M Zend/tests/traits/bug69579.phpt
A ext/opcache/tests/bug76337.phpt
Diff:
diff --git a/Zend/tests/bug76337.phpt b/Zend/tests/bug76337.phpt
deleted file mode 100644
index 07608e2..0000000
--- a/Zend/tests/bug76337.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Bug 76337: segmentation fault when an extension use zend_register_class_alias() and opcache enabled
---SKIPIF--
-<?php if (!class_exists('_ZendTestClass') || !extension_loaded('Zend
OPcache')) die('skip');
---INI--
-opcache.enable=1
-opcache.enable_cli=1
---FILE--
-<?php
-var_dump(class_exists('_ZendTestClassAlias'));
---EXPECT--
-bool(true)
diff --git a/Zend/tests/overloaded_func_001.phpt b/Zend/tests/overloaded_func_001.phpt
index 0b7360e..31585d5 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 (!class_exists('_ZendTestClass')) die("skip needs class with overloaded
function");
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
?>
--FILE--
<?php
diff --git a/Zend/tests/overloaded_func_002.phpt b/Zend/tests/overloaded_func_002.phpt
index 2762f41..a02f1e8 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 (!class_exists('_ZendTestClass')) die("skip needs class with overloaded
function");
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
?>
--FILE--
<?php
diff --git a/Zend/tests/return_types/internal_functions001.phpt
b/Zend/tests/return_types/internal_functions001.phpt
index 5dfd278..7ec5b9c 100644
--- a/Zend/tests/return_types/internal_functions001.phpt
+++ b/Zend/tests/return_types/internal_functions001.phpt
@@ -2,7 +2,7 @@
Return type for internal functions
--SKIPIF--
<?php
-if (!function_exists('zend_test_array_return')) die('skip');
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
// Internal function return types are only checked in debug builds
if (!PHP_DEBUG) die('skip requires debug build');
?>
diff --git a/Zend/tests/return_types/internal_functions002.phpt
b/Zend/tests/return_types/internal_functions002.phpt
index 0daf348..531b6c4 100644
--- a/Zend/tests/return_types/internal_functions002.phpt
+++ b/Zend/tests/return_types/internal_functions002.phpt
@@ -2,7 +2,7 @@
Return type for internal functions 2
--SKIPIF--
<?php
-if (!function_exists('zend_test_nullable_array_return')) die('skip');
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
--FILE--
<?php
zend_test_nullable_array_return();
diff --git a/Zend/tests/return_types/internal_functions003.phpt
b/Zend/tests/return_types/internal_functions003.phpt
index d2696a7..a7e7120 100644
--- a/Zend/tests/return_types/internal_functions003.phpt
+++ b/Zend/tests/return_types/internal_functions003.phpt
@@ -2,7 +2,7 @@
Return type for internal functions 3: Void return type
--SKIPIF--
<?php
-if (!function_exists('zend_test_void_return')) die('skip');
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
--FILE--
<?php
var_dump(zend_test_void_return());
diff --git a/Zend/tests/traits/bug69579.phpt b/Zend/tests/traits/bug69579.phpt
index 009bdda..94387ce 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 (!trait_exists('_ZendTestTrait')) die("skip requires internal trait");
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
?>
--FILE--
<?php
diff --git a/ext/opcache/tests/bug76337.phpt b/ext/opcache/tests/bug76337.phpt
new file mode 100644
index 0000000..fe3fd8d
--- /dev/null
+++ b/ext/opcache/tests/bug76337.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug 76337: segmentation fault when an extension use zend_register_class_alias() and opcache enabled
+--SKIPIF--
+<?php if (!extension_loaded('zend-test')) die('skip zend-test extension not
loaded');
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+--FILE--
+<?php
+var_dump(class_exists('_ZendTestClassAlias'));
+--EXPECT--
+bool(true)