Re: date() behaviour changed in 5.1?
| From: | Jakub Vrana | Date: | Wed, 16 Nov 2005 09:40:47 +0000 |
| Subject: | Re: date() behaviour changed in 5.1? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20057@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> Yeah, I am leaning towards that as well. I don't like the inconsistency
> between direct casting via (int) vs. zend_parse_parameter's strict
> casting. It is much simpler to explain that functions will cast to the
> required parameter type and have one consistent way to cast things.
I want be warned about wrong parameters. I (as a doc-guy) would rather
describe strict and non-strict casting than not be warned about
obviously wrong wordwrap("abc", "b").
I naturally agree with consistent parsing of parameters through
zend_parse_parameters() - my script checking if parameters in source
and documentation match uses it.
Jakub Vrana