mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
--TEST--
|
||||
ReflectionParameter::getDeclaringFunction()
|
||||
--CREDITS--
|
||||
Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
|
||||
#testfest roosendaal on 2008-05-10
|
||||
--FILE--
|
||||
<?php
|
||||
function ReflectionParameterTest($test, $test2 = null) {
|
||||
echo $test;
|
||||
}
|
||||
$reflect = new ReflectionFunction('ReflectionParameterTest');
|
||||
$params = $reflect->getParameters();
|
||||
foreach($params as $key => $value) {
|
||||
echo $value->getDeclaringFunction() . "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Function [ <user> function ReflectionParameterTest ] {
|
||||
@@ %s.php %d - %d
|
||||
|
||||
- Parameters [2] {
|
||||
Parameter #0 [ <required> $test ]
|
||||
Parameter #1 [ <optional> $test2 = NULL ]
|
||||
}
|
||||
}
|
||||
|
||||
Function [ <user> function ReflectionParameterTest ] {
|
||||
@@ %s.php %d - %d
|
||||
|
||||
- Parameters [2] {
|
||||
Parameter #0 [ <required> $test ]
|
||||
Parameter #1 [ <optional> $test2 = NULL ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user