summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-11-17 21:28:17 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-05 13:15:54 +0100
commit633926021bd9657f098b3b0441cf9a4477b8d80f (patch)
tree417f0bda1b7529c965344966d29009991931f45e /Zend
parent144b41ce8805e2afcdaa16e3dea350aa136f8849 (diff)
downloadphp-git-633926021bd9657f098b3b0441cf9a4477b8d80f.tar.gz
Remove ezmlm_hash() function
Diffstat (limited to 'Zend')
-rw-r--r--Zend/tests/call_to_deprecated_function_args.phpt19
1 files changed, 11 insertions, 8 deletions
diff --git a/Zend/tests/call_to_deprecated_function_args.phpt b/Zend/tests/call_to_deprecated_function_args.phpt
index 5c3eb9ae16..c7781e30e0 100644
--- a/Zend/tests/call_to_deprecated_function_args.phpt
+++ b/Zend/tests/call_to_deprecated_function_args.phpt
@@ -1,5 +1,8 @@
--TEST--
Check that arguments are freed when calling a deprecated function
+--SKIPIF--
+<?php
+if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
--FILE--
<?php
@@ -8,20 +11,20 @@ set_error_handler(function($code, $msg) {
});
try {
- ezmlm_hash(new stdClass);
+ zend_test_deprecated(new stdClass);
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
$ret = new stdClass;
try {
- $ret = ezmlm_hash(new stdClass);
+ $ret = zend_test_deprecated(new stdClass());
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
try {
- $fn = 'ezmlm_hash';
+ $fn = 'zend_test_deprecated';
$fn(new stdClass);
} catch (Error $e) {
echo $e->getMessage(), "\n";
@@ -29,7 +32,7 @@ try {
$ret = new stdClass;
try {
- $fn = 'ezmlm_hash';
+ $fn = 'zend_test_deprecated';
$ret = $fn(new stdClass);
} catch (Error $e) {
echo $e->getMessage(), "\n";
@@ -37,7 +40,7 @@ try {
?>
--EXPECT--
-Function ezmlm_hash() is deprecated
-Function ezmlm_hash() is deprecated
-Function ezmlm_hash() is deprecated
-Function ezmlm_hash() is deprecated
+Function zend_test_deprecated() is deprecated
+Function zend_test_deprecated() is deprecated
+Function zend_test_deprecated() is deprecated
+Function zend_test_deprecated() is deprecated