ID: 44709
Updated by: [EMAIL PROTECTED]
Reported By: wzed dot php at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Program Execution
Operating System: Windows XP
PHP Version: 5.2CVS-2008-04-13 (snap)
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
See also bug #41874
Previous Comments:
------------------------------------------------------------------------
[2008-04-13 03:26:56] wzed dot php at gmail dot com
Description:
------------
When a program is executed via one of PHP's program-execution
functions, it is unable to accept input from the command line. This
prevents interactive CLI programs from actually being interactive.
I believe this is a regression in PHP 5.2.2, as 5.2.1 and 4.x behave as
expected. It may be related to the fix for bug #33664.
Also see bug #41874.
Reproduce code:
---------------
<?php
passthru('pause');
echo "You pressed a key, exiting now";
?>
Expected result:
----------------
C:\>php-5.2.1-Win32\php test.php
Press any key to continue . . .
You pressed a key, exiting now
C:\>
Actual result:
--------------
C:\>php-5.2.2-Win32\php test.php
Press any key to continue . . . ^C
C:\>x
Note: Nothing happens when a key (in this case "x") is pressed. The
script hangs until terminated with Ctrl+C.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44709&edit=1