[Bug 230030] [NEW] php segfaults with readline

iblue iblue at gmx.net
Tue May 13 18:17:10 BST 2008


Public bug reported:

Binary package hint: php5-cli

iblue at 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 at box:/tmp$ lsb_release -rd
Description:    Ubuntu 8.04
Release:        8.04
iblue at box:/tmp$ cat bug.php 
<?php

function foo($part, $position) {
  return array();
}

readline_completion_function("foo");
$line = readline("Command: ");

iblue at box:/tmp$ php -q bug.php 
Command: [PRESS TAB] Segmentation fault
sw at raven:/tmp$

---
I think this bug is introducted by using libedit instead of libreadline by default. libedit is also missing some important readline functionality.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
php segfaults with readline
https://bugs.launchpad.net/bugs/230030
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list