|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-01-04 13:53 UTC] 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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 02:00:01 2025 UTC |
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.