Public bug reported:

Binary package hint: php5-cli

[EMAIL PROTECTED]:/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
[EMAIL PROTECTED]:/tmp$ lsb_release -rd
Description:    Ubuntu 8.04
Release:        8.04
[EMAIL PROTECTED]:/tmp$ cat bug.php 
<?php

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

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

[EMAIL PROTECTED]:/tmp$ php -q bug.php 
Command: [PRESS TAB] Segmentation fault
[EMAIL PROTECTED]:/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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to