Re: date() behaviour changed in 5.1?
| From: | Rasmus Lerdorf | Date: | Wed, 16 Nov 2005 09:46:23 +0000 |
| Subject: | Re: date() behaviour changed in 5.1? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20058@lists.php.net to get a copy of this message | ||
Jakub Vrana wrote:
Rasmus Lerdorf wrote:Right now, without looking at the source code, there is no way to tell which functions do strict casting and which ones don't. -RYeah, 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.