[php-maint] Bug#576218: Interactive interpreter (php -a) no longer functions

Jeremy Smith jeremy at blazonco.com
Thu Apr 1 17:06:30 UTC 2010


Package: php5-cli
Version: 5.3.1-5

The PHP interactive interpreter (invoked using `php -a`) no longer works 
correctly.  No statements are executed unless an EOF command is sent 
using ctrl-D.

Example:

jeremy at lothar:~$ php -a
Interactive mode enabled

<?php
echo "Test\n";
echo "Hello World!\n"
exit;
die;
die;
die('please');
^C
jeremy at lothar:~$ php -a
Interactive mode enabled

<?php
echo "Test\n";^D
Test
jeremy at lothar:~$

It is expected for the interactive interpreter to execute statements as 
they are entered - this is the current behavior in stable 
(5.2.6.dfsg.1-1+lenny8):

jeremy at private-host:~$ php -a
Interactive mode enabled
<?php
echo "Test\n";
Test
echo "Hello World!\n";
Hello World!
exit;
jeremy at private-host:~$

Unless something is malconfigured on my (newly installed) squeeze 
system, this should be easy for anyone to reproduce.

I will provide /etc/php5/cli/php.ini if requested -- however, it is just 
the default version installed with the package.

Other PHP5 modules installed:
libapache2-mod-php5/squeeze uptodate 5.3.1-5
php5/squeeze uptodate 5.3.1-5
php5-cli/squeeze uptodate 5.3.1-5
php5-common/squeeze uptodate 5.3.1-5
php5-curl/squeeze uptodate 5.3.1-5
php5-pgsql/squeeze uptodate 5.3.1-5
php5-suhosin/squeeze uptodate 0.9.29-1+b1
php5-tidy/squeeze uptodate 5.3.1-5
php5-xdebug/squeeze uptodate 2.0.5-1+b1
php5-xsl/squeeze uptodate 5.3.1-5

(I didn't request suhosin; it is installed by default).

Thanks,
Jeremy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5596 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20100401/d1440f3d/attachment.bin>


More information about the pkg-php-maint mailing list