Bug #70933 [Opn->Fbk]: Abnormal stop when setlocale is called with invalid parameter

From: Date: Wed, 18 Nov 2015 10:32:31 +0000
Subject: Bug #70933 [Opn->Fbk]: Abnormal stop when setlocale is called with invalid parameter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197316@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70933&edit=1 ID: 70933 Updated by: ab@php.net Reported by: piyoyo at users dot noreply dot github dot com Summary: Abnormal stop when setlocale is called with invalid parameter -Status: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: Windows10 PHP Version: 7.0.0RC7 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-11-18 10:30:56] ab@php.net @piyoyo in the description, besides en_US.UTF-8 is not a valid locale on Windows, are you aware that you pass an multi byte string? So in best case you'll just get false, or even a parse error. With your second snippet I can't reproduce any crash neither, i just got false in that case. Please check the event log and maybe try to get a backtrace https://bugs.php.net/bugs-generating-backtrace-win32.php or memory dump https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx Thanks ------------------------------------------------------------------------ [2015-11-18 10:15:14] piyoyo at users dot noreply dot github dot com CLI has stopped working error message php -nr "setlocale(LC_TIME, chr(130));" ------------------------------------------------------------------------ [2015-11-18 07:30:15] laruence@php.net what do you mean by "abnormal stop"? ------------------------------------------------------------------------ [2015-11-18 07:01:58] piyoyo at users dot noreply dot github dot com Description: ------------ Abnormal stop when setlocale is called with invalid parameter utf8 encoded such as non ascii code. Test script: --------------- <?php setlocale(LC_TIME, 'en_US.UTF-8'); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70933&edit=1

« previous php.bugs (#197316) next »