Bug #80583 [Com]: cli readline causes crash
Edit report at https://bugs.php.net/bug.php?id=80583&edit=1
ID: 80583
Comment by: raskimgoyenka at gmail dot com
Reported by: jan dot hana at atlas dot cz
Summary: cli readline causes crash
Status: Verified
Type: Bug
Package: *Unicode Issues
Operating System: Ubuntu 20.04
PHP Version: 8.0.0
Block user comment: N
Private report: N
New Comment:
Tell all about your recent experience through the ALS Customer Satisfaction Survey.
https://guestsurvey.onl/als-customer-satisfaction-survey-2020-to-win-250-gift-card/
Previous Comments:
------------------------------------------------------------------------
[2021-06-02 16:44:42] sontovl5 at gmail dot com
Red Lobster Employee Benefits Login @ portal.redlobster.com
Welcome to the Red Lobster Employee Benefits login guide! This post is attempting by the
employeebenefits.onl to give you detailed guidance about the benefits of the Red Lobster employees
offered by the company.
https://employeebenefits.onl/portal-redlobster-com/
------------------------------------------------------------------------
[2021-01-04 14:05:06] nikic@php.net
This works on 7.4 and 8.0:
var_dump(setlocale(LC_ALL, 'en_US.UTF-8'));
readline('doména ÄÅ¡ÄÅžýáÃé');
This crashes on 7.4 and 8.0:
var_dump(setlocale(LC_ALL, 'C'));
readline('doména ÄÅ¡ÄÅžýáÃé');
Locale-dependent crashes in libedit, this is horrible.
------------------------------------------------------------------------
[2021-01-04 13:53:00] jan dot hana at atlas dot cz
Description:
------------
When using the Czech diacritics in readline parametter, whole application crashes.
It works in PHP 7.4.
Test script:
---------------
<?php
readline('doména ÄÅ¡ÄÅžýáÃé');
Actual result:
--------------
NeoprávnÄný pÅÃstup do pamÄti (SIGSEGV) (core dumped [obraz pamÄti uložen])
Translated to EN: Unauthorized Memory Access (SIGSEGV) (core dumped)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80583&edit=1
Thread (22 messages)
- jan dot hana at atlas dot cz
- nikic@php.netBug #80583 [Opn->Ver]: cli readline causes crash
- summerdevon40 at gmail dot comBug #80583 [Com]: cli readline causes crash
- sontovl5 at gmail dot comBug #80583 [Com]: cli readline causes crash
- raskimgoyenka at gmail dot comBug #80583 [Com]: cli readline causes crash
- fontiasin at gmail dot comBug #80583 [Com]: cli readline causes crash
- sontovl5 at gmail dot comBug #80583 [Com]: cli readline causes crash
- voltangrean at gmail dot comBug #80583 [Com]: cli readline causes crash
- employeeb14 at gmail dot comBug #80583 [Com]: cli readline causes crash
- vefaconkokev at getnada dot comBug #80583 [Com]: cli readline causes crash
- risetar964 at pigicorn dot comBug #80583 [Com]: cli readline causes crash
- jonah9815 at gmail dot comBug #80583 [Com]: cli readline causes crash
- jonsonmandela773 at gmail dot comBug #80583 [Com]: cli readline causes crash
- surveypriz66 at gmail dot comBug #80583 [Com]: cli readline causes crash
- surveypriz66 at gmail dot comBug #80583 [Com]: cli readline causes crash
- derodixeyari at getnada dot comBug #80583 [Com]: cli readline causes crash
- worldimges123 at gmail dot comBug #80583 [Com]: cli readline causes crash
- hejataxonil at getnada dot comBug #80583 [Com]: cli readline causes crash
- Ernaelsten at gmail dot comBug #80583 [Com]: cli readline causes crash
- cotaxak207 at wusehe dot comBug #80583 [Com]: cli readline causes crash
- cotaxak207 at wusehe dot comBug #80583 [Com]: cli readline causes crash
- sebagi8166 at mxclip dot comBug #80583 [Com]: cli readline causes crash