diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-22 12:41:34 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-22 12:41:34 +0100 |
commit | 9457cfca373f9e55eea8cf13ca39b4102003e7a8 (patch) | |
tree | 3e200a6635303eaa19250211253d120675f7b284 /ext/reflection/tests | |
parent | d373c11e710b525feb6373629e3d1ebffef2dd5b (diff) | |
parent | 620a753185e575c8d48779764f376f6227b6e293 (diff) | |
download | php-git-9457cfca373f9e55eea8cf13ca39b4102003e7a8.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r-- | ext/reflection/tests/bug77772.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug77772.phpt b/ext/reflection/tests/bug77772.phpt new file mode 100644 index 0000000000..07696210c5 --- /dev/null +++ b/ext/reflection/tests/bug77772.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #77772: ReflectionClass::getMethods(null) doesn't work +--FILE-- +<?php + +class Test { + public $prop; + public function method() {} +} + +$rc = new ReflectionClass(Test::class); +foreach ($rc->getMethods(null) as $method) { + var_dump($method->getName()); +} +foreach ($rc->getProperties(null) as $prop) { + var_dump($prop->getName()); +} + +?> +--EXPECT-- +string(6) "method" +string(4) "prop" |