php interactive mode broken
Posted by: Bulle Bas (---.solcon.nl)
Date: December 09, 2009 11:17PM

THe interactive mode for php can be triggered by using the -a flag.

php -a
The command line tells that the interactive mode is enabled. However, if I type in something like

<?php
     echo 'something';
?>
no output will be generated. Is this a bug in php 5.3.0? In the previous wamp (php 5.2) it worked.

This problem appears in WampServer 2.0i [11/07/09]

Options: ReplyQuote
Re: php interactive mode broken
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: December 09, 2009 11:27PM

u sure ur using the cli?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: php interactive mode broken
Posted by: Bulle Bas (---.solcon.nl)
Date: December 10, 2009 12:56AM

yes just php.exe.
php-win.exe doesn't work interactively.

I figured out that when you exit php in the hard wa, you will see that it evaluates everything you typed before.

php -a

<?php
echo 'something';
?>

CTRL-C

now you get this output:

something

Previous versions shows output incrementally, while your session is still active. The current way is not usefull, it's actaully equivalent to php -r

Options: ReplyQuote


Sorry, only registered users may post in this forum.