ID:               48900
 Updated by:       [email protected]
 Reported By:      fherrero at noticiasdenavarra dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Program Execution
 Operating System: Windows
 PHP Version:      5.2.10
 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 bug #44709 and bug #41874 (fixed in 5.3+)


Previous Comments:
------------------------------------------------------------------------

[2009-07-12 23:57:00] fherrero at noticiasdenavarra dot com

Description:
------------
Windows XP/2003/2008/Vista

PHP => 5.2.4 (5.2.4, 5.2.5, 5.2.6, 5.2.9, 5.2.10 and 5.3.0 tested)

When execute passthru('pause') in cmd windows whith php-cli, 'pause' is
executed but php not pass stdin to 'pause': the script is paused
forever.

Whith PHP 5.2.0 its works fine.

Cuando se ejecuta passthru('pause') en una ventana de comandos con
php-cli, la pausa se produce pero php no pasa la entrada estándar al
proceso: el script se queda eternamente en pausa.

Reproduce code:
---------------
<?php
echo 'Vamos a pausar el script, para reanudarlo pulse una tecla',
"\n";
echo 'Script is paused, press a key for continue', "\n";
passthru('pause');
echo 'Seguimos el script', "\n";
echo 'Script is continued';
?>

Expected result:
----------------
Vamos a pausar el script, para reanudarlo pulse una tecla
Script is paused, press a key for continue

Presione una tecla para continuar . . . ['Press any key to continue'
echoed by pause command, script is paused until key is pressed]

Seguimos el script
Script is continued


[

Actual result:
--------------
Vamos a pausar el script, para reanudarlo pulse una tecla
Script is paused, press a key for continue

Presione una tecla para continuar . . . ['Press any key to continue'
echoed by pause command, script is paused forever]



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48900&edit=1

Reply via email to