Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

From: Date: Fri, 08 Apr 2005 16:52:43 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-15916@lists.php.net to get a copy of this message
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

« previous php.internals (#15916) next »