Edit report at https://bugs.php.net/bug.php?id=25203&edit=1
ID: 25203 Comment by: jeffvanb at u dot washington dot edu Reported by: daniel at port dot as Summary: php -a doesn't work on windows Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Any (ZTS enabled) PHP Version: 4.3.3RC5-dev Block user comment: N Private report: N New Comment: I am experiencing this with the stable windows build 5.4.3 on Windows XP SP3. Using ctrl-z doesn't seem to work either, and the other commenter stated the behavior is clearly different from linux which prompts the user like this: Interactive shell php > On Windows I don't even see the "php >" prompt. Previous Comments: ------------------------------------------------------------------------ [2003-08-22 13:39:13] daniel at port dot as 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. ------------------------------------------------------------------------ [2003-08-22 03:06:44] ed...@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] sni...@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 https://bugs.php.net/bug.php?id=25203&edit=1