Bug #81280 [Com]: cli.prompt leads to segmentation fault

From: Date: Fri, 23 Jul 2021 08:01:22 +0000
Subject: Bug #81280 [Com]: cli.prompt leads to segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235276@lists.php.net to get a copy of this message
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)

« previous php.bugs (#235276) next »