Bug #70933 [Fbk->NoF]: Abnormal stop when setlocale is called with invalid parameter
| From: | php-bugs at lists dot php dot net | Date: | Sun, 29 Nov 2015 04:22:16 +0000 |
| Subject: | Bug #70933 [Fbk->NoF]: Abnormal stop when setlocale is called with invalid parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197485@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: php-bugs@lists.php.net
Reported by: piyoyo at users dot noreply dot github dot com
Summary: Abnormal stop when setlocale is called with invalid
parameter
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: Windows10
PHP Version: 7.0.0RC7
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
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,
'ï½
ï½ï¼¿ï¼µï¼³ï¼ï¼µï¼´ï¼¦ï¼ï¼');
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70933&edit=1