Return value of ext/intl constructors upon errors
| From: | Martin Jansen | Date: | Thu, 19 Dec 2013 21:42:21 +0000 |
| Subject: | Return value of ext/intl constructors upon errors | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-70761@lists.php.net to get a copy of this message | ||
While looking into #66323 I noticed that the constructor methods of the
classes in ext/intl like IntlDateFormatter and NumberFormatter return NULL
when encountering errors like illegal timezones instead of FALSE as
suggested by the manual.
Other OO-style parts of the core like DateTime also seem to be using mostly
FALSE in such situations. Fixing intl will result in a slight BC wreakage,
which makes me wonder if that's worth it. What's the general opinion?
- Martin