]> granicus.if.org Git - php/commitdiff
Use a deprecated function that still exists. POST_PHP7_EREG_MYSQL_REMOVALS
authorAdam Harvey <aharvey@php.net>
Thu, 5 Mar 2015 00:51:05 +0000 (00:51 +0000)
committerAdam Harvey <aharvey@php.net>
Thu, 5 Mar 2015 00:51:05 +0000 (00:51 +0000)
ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt

index 720ac95f4f24320d790dc16cdf244b01e0bbd618..39323fd280f4a9db5ecaf83c841b20cf8a06e8c7 100644 (file)
@@ -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)