1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00
Files
archived-php-src/ext/reflection/tests/bug41061.phpt
Nikita Popov 3121b7174f Deprecate Reflection export() methods
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00

29 lines
450 B
PHP

--TEST--
Reflection Bug #41061 ("visibility error" in ReflectionFunction::__toString())
--FILE--
<?php
function foo() {
}
class bar {
private function foo() {
}
}
echo new ReflectionFunction('foo'), "\n";
echo new ReflectionMethod('bar', 'foo'), "\n";
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Function [ <user> function foo ] {
@@ %sbug41061.php 3 - 4
}
Method [ <user> private method foo ] {
@@ %sbug41061.php 7 - 8
}
===DONE===