RE: [PHP-WIN] Re: PHP console (php.exe -a)

[email protected] ("Louis Solomon")
Newsgroups php.windows
Message-ID <AEAF3F5F80E5534D9390A5BCDF714ADC018938@server>
> ... But, if I now enter "^C" ...
 
although maybe not a solution to php being a strange beast, IIFC Ctrl-Z is the normal way to terminate input via stdin.
 
Louis Solomon
www.SteelBytes.com <http://www.steelbytes.com/> 
 

________________________________

From: news on behalf of Carsten Wiedmann
Sent: Mon 2009/12/28 10:00 PM
To: [email protected]
Subject: [PHP-WIN] Re: PHP console (php.exe -a)



Am 27.12.2009 23:44, schrieb Sascha Meyer:
>> | echo $a.PHP_EOL;
>> |
>> Nothing happens on Windows at this point. The cursor is in the next line
>> waiting for input. But, if I now enter "^C", I can see the result:
>> | 6
>> |
>> | #
>> So on Windows the whole code/input is executed at once and not step by
>> step.
>> And because PHP is also terminated with "^C", I can't enter additional
>> code.
>
> just tried with PHP 5.3 on XP and Windows 7 and both directly output code when the echo command is called, not when the script is terminated.
> Which PHP version did you use that shows the buggy behaviour?

All PHP 5.3.x versions. With PHP 5.2.x it's correct and the same behavior
like on *nix.

Just curious, if I test this more then one time, sometimes I can see the
output with "^C", and sometimes not?

BTW: It's always a VC6-TS build and XP SP3 32bit.

Regards,
Carsten



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.