com php-src: Use a deprecated function that still exists.: ext/reflection/tests/ReflectionFunction_isDeprecated_basic .phpt
| From: | Adam Harvey | Date: | Thu, 05 Mar 2015 00:51:05 +0000 |
| Subject: | com php-src: Use a deprecated function that still exists.: ext/reflection/tests/ReflectionFunction_isDeprecated_basic .phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85223@lists.php.net to get a copy of this message | ||
Commit: 10c471a60bde89745e5e5528184386db4053b4b1
Author: Adam Harvey <aharvey@php.net> Thu, 5 Mar 2015 00:51:05 +0000
Parents: 3253168cde37c2f5592b6898b6ab52dcd6a6bb56
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=10c471a60bde89745e5e5528184386db4053b4b1
Log:
Use a deprecated function that still exists.
Changed paths:
M ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
Diff:
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
index 720ac95..39323fd 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)