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

Reply via email to