Bug #74811 [Opn]: IntlException: Constructor failed

From: Date: Sun, 25 Jun 2017 12:35:54 +0000
Subject: Bug #74811 [Opn]: IntlException: Constructor failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209672@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74811&edit=1 ID: 74811 User updated by: mberchtold at gmail dot com Reported by: mberchtold at gmail dot com Summary: IntlException: Constructor failed Status: Open Type: Bug Package: Date/time related Operating System: Windows 10 PHP Version: 7.2.0alpha2 Block user comment: N Private report: N New Comment: Are you testing with the 64-bit NTS version? This is the error from the sample script: [25-Jun-2017 12:34:17 utc] PHP Fatal error: Uncaught IntlException: Constructor failed in C:\Downloads\test.php:3 Stack trace: #0 C:\Downloads\test.php(3): IntlDateFormatter->__construct('en_US', 0, 0) #1 {main} thrown in C:\Downloads\test.php on line 3 Previous Comments: ------------------------------------------------------------------------ [2017-06-25 12:29:56] cmb@php.net > It is trivial to reproduce the bug with the provided sample code. I have not been able to reproduce the issue with PHP 7.2.0alpha2 on Windows, nor on Linux, see <https://3v4l.org/SpvfG>. ------------------------------------------------------------------------ [2017-06-25 12:19:20] mberchtold at gmail dot com PHP does not crash, hence there is no backtrace. It is trivial to reproduce the bug with the provided sample code. ------------------------------------------------------------------------ [2017-06-25 12:09:37] cmb@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2017-06-25 11:19:24] mberchtold at gmail dot com Description: ------------ Bug in IntlDateFormatter constructor Test script: --------------- <?php new \IntlDateFormatter('en_US' /*\Locale::getDefault()*/, \IntlDateFormatter::FULL, \IntlDateFormatter::FULL); Expected result: ---------------- no exception Actual result: -------------- IntlException: Constructor failed in ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74811&edit=1

« previous php.bugs (#209672) next »