Bug #81280 [Com]: cli.prompt leads to segmentation fault
Edit report at https://bugs.php.net/bug.php?id=81280&edit=1
ID: 81280
Comment by: patrickallaert@php.net
Reported by: easteregg at verfriemelt dot org
Summary: cli.prompt leads to segmentation fault
Status: Open
Type: Bug
Package: *General Issues
Operating System: Debian GNU/Linux 11 (bullseye)
PHP Version: 8.0.8
Block user comment: N
Private report: N
New Comment:
I can't reproduce this one, any chance to provide a gdb backtrace?
Does it happen too with the following?
$ php -n -d cli.prompt="»" -a
Previous Comments:
------------------------------------------------------------------------
[2021-07-23 06:18:07] easteregg at verfriemelt dot org
sorry, i forgot to mention, that this will only occur with unicode characters, hence the example
with "»"
------------------------------------------------------------------------
[2021-07-23 06:10:30] easteregg at verfriemelt dot org
Description:
------------
i wanted to improve my interactive shellprompt...
Test script:
---------------
echo cli.prompt="»" > test.ini
PHPRC=pwd/test.ini php -a
Expected result:
----------------
Interactive mode enabled
»
Actual result:
--------------
Interactive mode enabled
[1] 2825134 segmentation fault (core dumped) php -a
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81280&edit=1
Thread (10 messages)