#44709 [Com]: CLI input not passed to executed programs
| From: | fherrero at noticiasdenavarra dot com | Date: | Tue, 03 Jun 2008 01:00:39 +0000 |
| Subject: | #44709 [Com]: CLI input not passed to executed programs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125440@lists.php.net to get a copy of this message | ||
ID: 44709
Comment by: fherrero at noticiasdenavarra dot com
Reported By: wzed dot php at gmail dot com
Status: Open
Bug Type: CGI related
Operating System: Windows XP
PHP Version: 5.2CVS-2008-04-13 (snap)
New Comment:
PHP 5.2.6
Windows 2003R2 SP2
Same result.
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