Re: Re: Type hints revisited [IllegalArgumentException instead of E_ERROR]

From: Date: Mon, 31 Mar 2003 13:32:10 +0000
Subject: Re: Re: Type hints revisited [IllegalArgumentException instead of E_ERROR]
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-541@lists.php.net to get a copy of this message
Yes, but when using call_user_function, __call(), and RPC servers, you don't always know what function you are calling at the time you write the script. Thats where is_callable()/function_exists() are extremely useful. --Wez. On Mon, 31 Mar 2003, Stanislav Malyshev wrote: > WF>> Please don't have it bail out unless there is some kind of > WF>> function_parameters_are_ok() API so that careful programmers can work > WF>> around this issue. > > Careful programmers should know interface of called functions and never > call them with parameters that do not match the interface. :)

« previous php.internals (#541) next »