Skip to content

Commit 10c471a

Browse files
committed
Use a deprecated function that still exists.
1 parent 3253168 commit 10c471a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ ReflectionFunction::isDeprecated
33
--CREDITS--
44
Stefan Koopmanschap <[email protected]>
55
TestFest PHP|Tek
6+
--SKIPIF--
7+
<?php
8+
9+
if (!extension_loaded('mcrypt')) echo "skip no deprecated functions available";
10+
11+
?>
612
--FILE--
713
<?php
8-
$rc = new ReflectionFunction('magic_quotes_runtime');
14+
$rc = new ReflectionFunction('mcrypt_ecb');
915
var_dump($rc->isDeprecated());
1016
--EXPECTF--
1117
bool(true)

0 commit comments

Comments
 (0)