#25203 [Bgs]: php -a doesn't work on windows
| From: | daniel at port dot as | Date: | Fri, 22 Aug 2003 18:39:13 +0000 |
| Subject: | #25203 [Bgs]: php -a doesn't work on windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46496@lists.php.net to get a copy of this message | ||
ID: 25203
User updated by: daniel at port dot as
Reported By: daniel at port dot as
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Any (ZTS enabled)
PHP Version: 4.3.3RC5-dev
New Comment:
The behavior isn't consistant between the windows and linux versions.
Under PHP 4.3.2 in windows using ^Z for EOF I get:
C:\Program Files\nusphere\phpED\php>php -aq
Interactive mode enabled
<? echo test; ?>^Z
^Z
test¨
C:\Program Files\nusphere\phpED\php>
So now the php code executes (after ^Z <enter> ^Z), but then exits. I
only used ^C in my example previously to exit interactive php. In
linux, php -a will execute any php statement without exiting.
Previous Comments:
------------------------------------------------------------------------
[2003-08-22 03:06:44] edink@php.net
It works just fine here, if you don't interupt the program with ^C but
use proper windows EOF char which is ^Z.
------------------------------------------------------------------------
[2003-08-22 02:28:58] sniper@php.net
I could reproduce this with latest stable CVS too.
Did you try any older PHP releases? (4.3.2 for example)
Does this problem exist with those?
------------------------------------------------------------------------
[2003-08-22 00:04:05] daniel at port dot as
Description:
------------
Interactive mode (php -a) doesn't seem to work on windows. File mode
works fine. I've tried various versions of windows and PHP, but the
result is the same. Interactive mode works fine in Linux.
Reproduce code:
---------------
C:\PHP>php -a
Interactive mode enabled
<? echo working? ?>
^C
Expected result:
----------------
working?
Actual result:
--------------
<no output>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25203&edit=1