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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to