# Return value of ext/intl constructors upon errors

- Thread: https://externals.io/message/70761
- Original archive: https://news-web.php.net/php.internals/70761
- Started by Martin Jansen on 2013-12-19T21:42:21+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #70761 — Martin Jansen — 2013-12-19T21:42:21+00:00

URL: https://externals.io/message/70761#70761

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
