mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
31 lines
532 B
Plaintext
31 lines
532 B
Plaintext
|
--TEST--
|
||
|
Reflection Bug #41061 ("visibility error" in ReflectionFunction::export())
|
||
|
--SKIPIF--
|
||
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function foo() {
|
||
|
}
|
||
|
|
||
|
class bar {
|
||
|
private function foo() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Reflection::export(new ReflectionFunction('foo'));
|
||
|
Reflection::export(new ReflectionMethod('bar', 'foo'));
|
||
|
?>
|
||
|
===DONE===
|
||
|
<?php exit(0); ?>
|
||
|
--EXPECTF--
|
||
|
Function [ <user> function foo ] {
|
||
|
@@ %sbug41061.php 3 - 4
|
||
|
}
|
||
|
|
||
|
Method [ <user> private method foo ] {
|
||
|
@@ %sbug41061.php 7 - 8
|
||
|
}
|
||
|
|
||
|
===DONE===
|