Re: Mixed return type - boolean and array/resource/closure or object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Stoll wrote:

> Nevertheless, the signature in the documentation implies that
> date_create() returns always DateTime. I already submitted a patch to
> change it to mixed :)

IMHO, the signature is fine, as false is returned only in *exceptional*
cases.  To be strict, changing the return type to mixed had to be done
for (nearly) *all* functions, because several may return false in error
cases, and many will return null when wrong arguments are passed.

-- 
Christoph M. Becker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux