Bug #70933 [Com]: Abnormal stop when setlocale is called with invalid parameter
| From: | piyoyo at users dot noreply dot github dot com | Date: | Wed, 18 Nov 2015 10:15:17 +0000 |
| Subject: | Bug #70933 [Com]: Abnormal stop when setlocale is called with invalid parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197314@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
Comment by: piyoyo at users dot noreply dot github dot com
Reported by: piyoyo at users dot noreply dot github dot com
Summary: Abnormal stop when setlocale is called with invalid
parameter
Status: Open
Type: Bug
Package: *General Issues
Operating System: Windows10
PHP Version: 7.0.0RC7
Block user comment: N
Private report: N
New Comment:
CLI has stopped working error message
php -nr "setlocale(LC_TIME, chr(130));"
Previous Comments:
------------------------------------------------------------------------
[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