summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2015-03-05 00:51:05 +0000
committerAdam Harvey <aharvey@php.net>2015-03-05 00:51:05 +0000
commit10c471a60bde89745e5e5528184386db4053b4b1 (patch)
treec7d19dfadf96b6789c973c5dd8c02cf54c8bb157
parent3253168cde37c2f5592b6898b6ab52dcd6a6bb56 (diff)
downloadphp-git-10c471a60bde89745e5e5528184386db4053b4b1.tar.gz
Use a deprecated function that still exists.POST_PHP7_EREG_MYSQL_REMOVALS
-rw-r--r--ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
index 720ac95f4f..39323fd280 100644
--- a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
+++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
@@ -3,9 +3,15 @@ ReflectionFunction::isDeprecated
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
+--SKIPIF--
+<?php
+
+if (!extension_loaded('mcrypt')) echo "skip no deprecated functions available";
+
+?>
--FILE--
<?php
-$rc = new ReflectionFunction('magic_quotes_runtime');
+$rc = new ReflectionFunction('mcrypt_ecb');
var_dump($rc->isDeprecated());
--EXPECTF--
bool(true)