php segfaults with readline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: php5-cli
iblue@box:/tmp$ php -v
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 20:43:54)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
iblue@box:/tmp$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
iblue@box:/tmp$ cat bug.php
<?php
function foo($part, $position) {
return array();
}
readline_
$line = readline("Command: ");
iblue@box:/tmp$ php -q bug.php
Command: [PRESS TAB] Segmentation fault
sw@raven:/tmp$
---
I think this bug is introducted by using libedit instead of libreadline by default. libedit is also missing some important readline functionality.
Changed in php5 (Ubuntu): | |
importance: | Undecided → Low |
Thanks for the bug report I will revisit this again for intrepid.
Thanks
chuck