# Reflection API b0rked in HEAD and PHP_5_2

- Thread: https://externals.io/message/24009
- Original archive: https://news-web.php.net/php.internals/24009
- Started by Sebastian Bergmann on 2006-06-08T19:28:05+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #24009 — Sebastian Bergmann — 2006-06-08T19:28:05+00:00

URL: https://externals.io/message/24009#24009

http://phpfi.com/122573

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #24031 — Hannes Magnusson — 2006-06-09T12:13:29+00:00

URL: https://externals.io/message/24009#24031 · In reply to: #24009

Hi Sebastian


>  http://phpfi.com/122573

Looks like the arginfo patch broke it.., well, actually it uncovered a
bug in ext/reflection.
The messages are correct, ReflectionMethod::invokeArgs takes two
arguments but ReflectionFunction::invokeArgs only takes one
(ReflectionMethod extends ReflectionFunction) ergo=>E_STRICT in 5_2
and fatal in HEAD.

The reason for it worked before is the engine has no idea about how
many arguments each method takes - unless it gets that info
specifically.

We've got two options: don't provide the argument info (and therefor
break our own OO rules) or take a deeper look into ext/reflection and
fix the inherit problems..

-Hannes
