ID:               48759
 User updated by:  booi at crunchyroll dot com
 Reported By:      booi at crunchyroll dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         CGI related
 Operating System: Fedora Core 6 x86_64
 PHP Version:      5.3.0
 New Comment:

Yes, php -m does list readline as being there.

[b...@nexus4 ~]$ php -m
[PHP Modules]
...
readline
...

[Zend Modules]


Previous Comments:
------------------------------------------------------------------------

[2009-07-01 22:11:14] j...@php.net

1. Is readline mentioned in php -m output?
2. If not, check config.log for reason why it failed.

------------------------------------------------------------------------

[2009-07-01 20:47:14] booi at crunchyroll dot com

A little bit more information. Notable failure during "make test"

FAIL CLI -a and readline [sapi/cli/tests/016.phpt] 

================================================================================
/home/booi/php-5.3.0/sapi/cli/tests/016.phpt
================================================================================
--------------
Snippet no. 1:
--------------
Interactive mode enabled

echo 'Hello world';
exit


--------------
Snippet no. 2:
--------------
Interactive mode enabled

echo 'multine
single
quote';
exit


--------------
Snippet no. 3:
--------------
Interactive mode enabled

echo <<<HEREDOC
Here
comes
the
doc
HEREDOC;


--------------
Snippet no. 4:
--------------
Interactive mode enabled

if (0) {
    echo "I'm not there";
}
echo "Done";


--------------
Snippet no. 5:
--------------
Interactive mode enabled

function a_function_with_some_name() {
    echo "I was called!";
}
a_function_w    );


Done
================================================================================
004+ Interactive mode enabled
004- Interactive shell
006+ echo 'Hello world';
007+ exit
008+ 
006- php > Hello world
007- php > 
012- Interactive shell
013+ Interactive mode enabled
014- php > php ' php ' multine
015+ echo 'multine
016- quote
017- php > 
017+ quote';
018+ exit
019+ 
022- Interactive shell
024+ Interactive mode enabled
024- php > <<< > <<< > <<< > <<< > <<< > Here
026+ echo <<<HEREDOC
027+ Here
028- php > 
031+ HEREDOC;
033+ 
033- Interactive shell
035- php > php { php { php > Done
036- php > 
037+ Interactive mode enabled
039+ if (0) {
040+     echo "I'm not there";
041+ }
042+ echo "Done";
043+ 
041- Interactive shell
043- php > php { php { php > I was called!
044- php > 
048+ Interactive mode enabled
050+ function a_function_with_some_name() {
051+     echo "I was called!";
052+ }
053+ a_function_w       );
054+ 
================================================================================



[b...@nexus4 php-5.3.0]$ uname -a
Linux nexus4 2.6.22.14-72.fc6 #1 SMP Wed Nov 21 14:10:25 EST 2007
x86_64 x86_64 x86_64 GNU/Linux

[b...@nexus4 php-5.3.0]$ rpm -qa | grep readline
readline-5.1-1.1
readline-devel-5.1-1.1
readline-5.1-1.1
readline-devel-5.1-1.1

There are duplicate packages because one is 32bit and one is 64bit.

------------------------------------------------------------------------

[2009-07-01 20:16:46] booi at crunchyroll dot com

Description:
------------
PHP Interactive mode does not give a prompt nor allow any interaction.
It is as if Readline was not compiled in.

Reproduce code:
---------------
php -a

Expected result:
----------------
[b...@nexus3 ~]$ php -i | grep readline
Configure Command =>  './configure'  '--enable-fastcgi'
'--enable-discard-path' '--enable-force-cgi-redirect' '--with-curl'
'--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-mcrypt'
'--with-mysql=/usr/local/mysql' '--with-openssl' '--with-pear'
'--with-readline' '--with-ttf'
'--with-freetype-dir=/usr/include/freetype2' '--with-xmlrpc'
'--with-zlib' '--without-pdo-sqlite' '--without-sqlite' '--disable-pdo'
'--enable-exif' '--enable-ftp' '--enable-inline-optimization'
'--enable-mbstring' '--enable-soap' '--enable-sockets'
readline

[b...@nexus3 ~]$ php -v
PHP 5.2.9 (cli) (built: Jun 20 2009 01:06:18) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

[b...@nexus3 ~]$ php -a
Interactive shell

php > 


Actual result:
--------------
[b...@nexus4 bin]$ php -i | grep -i readline
Configure Command =>  './configure'  '--prefix=/usr/local'
'--with-apxs2=/usr/local/apache2/bin/apxs' '--disable-debug'
'--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-soap'
'--enable-sockets' '--enable-zip' '--with-bz2' '--with-curl'
'--with-freetype-dir=/usr/include/freetype2' '--with-gd'
'--with-jpeg-dir=/usr' '--with-mcrypt' '--with-mhash'
'--with-mysql=/usr/local/mysql' '--with-mysqli=mysqlnd' '--with-openssl'
'--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr'
'--with-xmlrpc' '--with-zlib' '--with-readline'
readline

[b...@nexus4 bin]$ php -v
PHP 5.3.0 (cli) (built: Jun 30 2009 19:08:04) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

[b...@nexus4 bin]$ php -a
Interactive mode enabled




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48759&edit=1

Reply via email to