From:             stolle at web dot de
Operating system: Windows XP SP2
PHP version:      5.0.2
PHP Bug Type:     Program Execution
Bug description:  exec hangs until program is over

Description:
------------
I'm using PHP on Apache2 (both: Latest Builds)

When starting a Program using "exec()" die PHP-Scripts allways hangs under
Windows, until the started program terminates.

There is no chance to start f.e. notepad.exe in that way, that notepad
runs interaktivly, but PHP continous work.

Notepad is just an example, i want to control (start and stop) some
Windows-Tasks throug PHP.

I tried the latest PHP snapshot-Version as well.

Reproduce code:
---------------
    exec('notepad.exe');

    exec( "cmd.exe /c c:/windows/notepad.exe 2>nul: >nul:" );


    exec( "c:/windows/notepad.exe 2>nul: >nul: &" );

    exec( "c:/windows/notepad.exe 2>nul: >nul:" );


Expected result:
----------------
PHP Script should NOT wait for end of notepad

Actual result:
--------------
PHP Script wait's for end of notepad

-- 
Edit bug report at http://bugs.php.net/?id=30794&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30794&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30794&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30794&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30794&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30794&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30794&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30794&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30794&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30794&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30794&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30794&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30794&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30794&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30794&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30794&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30794&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30794&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30794&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30794&r=mysqlcfg

Reply via email to