Edit report at https://bugs.php.net/bug.php?id=80583&edit=1
ID: 80583
Comment by: cotaxak207 at wusehe 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:
Sonic Vegan Options â Guys!! If you want to know about Sonic vegan options at Sonic Drive-In?
You are not only. So let us be your neighbourhood in introducing you to the new vegan options in
Sonic drive-in.
Their menu includes pickles, fries, sandwiches, frozen drinks, wraps, sauces, and whatnot! Besides,
you can take your sandwich customized with preferred sauces, veggies and bread.
https://sonic-breakfast-menu.online/sonic-vegan-options/
Previous Comments:
------------------------------------------------------------------------
[2022-01-08 06:35:53] cotaxak207 at wusehe dot com
Sonic Vegan Options â Guys!! If you want to know about Sonic vegan options at Sonic Drive-In?
You are not only. So let us be your neighbourhood in introducing you to the new vegan options in
Sonic drive-in.
Their menu includes pickles, fries, sandwiches, frozen drinks, wraps, sauces, and whatnot! Besides,
you can take your sandwich customized with preferred sauces, veggies and bread.
https://sonic-breakfast-menu.online/sonic-vegan-options/
------------------------------------------------------------------------
[2021-10-27 18:28:19] Ernaelsten at gmail dot com
I have the same problem with the local fr_BE , under Mint and Pop!Os (ubuntu 20.04) for php8.0 and
php8.1.
On the other hand with php7.4 no problem.
I can't put accented characters in the response of a readline() function either.
------------------------------------------------------------------------
[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