|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-05 07:48 UTC] jani@php.net
[2009-08-10 17:20 UTC] stas@php.net
[2009-08-10 17:21 UTC] stas@php.net
[2009-08-10 18:40 UTC] maximgb at yandex dot ru
[2015-06-16 11:37 UTC] danack@php.net
-Status: Not a bug
+Status: Closed
[2015-06-16 11:37 UTC] danack@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ I've tryed to create the MessageFormatter class, from intl extension, passing an empty string for the constructor's second argument and I was pretty surprised to get NULL instead of object instance :) Reproduce code: --------------- $f = new MessageFormatter(Locale::getDefault(), ''); var_dump($f, is_object($f)); $f = MessageFormatter::create(Locale::getDefault(), ''); var_dump($f, is_object($f)); Expected result: ---------------- object(MessageFormatter)#1 (0) { } bool(true) object(MessageFormatter)#2 (0) { } bool(true) Actual result: -------------- NULL bool(false) NULL bool(false)