Re: RE: [RFC] Fast Parameter Parsing API
| From: | Stas Malyshev | Date: | Tue, 27 May 2014 02:00:14 +0000 |
| Subject: | Re: RE: [RFC] Fast Parameter Parsing API | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74508@lists.php.net to get a copy of this message | ||
Hi!
> No. You might want to return false (it's maybe not a good idea to do so, but it would
> break BC to remove that possibility)
I think we need to use this opportunity to clean up our APIs. I.e. if
the functions return NULL when passed wrong parameters (which makes
sense), then *all* functions should do that, not just 99%, and random 1%
would return something else.
Yes, this means some (very minor) BC issues. We're doing a major
version, and I think this is acceptable price to pay for consistent API.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227