At 06:31 PM 4/8/2005 +0200, Andrey Hristov wrote:
  Hello Andi, Marcus,
method_exists() is quite vital to help where the type hinting fail.
Type hinting fail because it leads to a fatal error which is uncatchable
and the code cannot react on this. Therefore, for me type hinting is
kind of useless since I cannot catch my bugs by executing some code whenever
the data passed is not what the function/method expects. Reflection API is
overkill to write everywhere and has to be wrapped to something which at
the end will simulate method_exists().

a) I was never talking about removing method_exists() due to BC.
b) If you want a function like this, and really can't live with reflection API (which is BS because you can write your own method_exists() in PHP), then we should pick a new naming similar to debug_*, mysql_* to put these functions in. I don't think we should keep on working against coding standards unless there's an exceptional reason.
c) We discussed this in the past and agreed to using reflection API so I don't understand where this commit is even coming from.


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to