#27787 [Fbk->NoF]: browser hangs with exec()

From: Date: Wed, 07 Apr 2004 14:58:03 +0000
Subject: #27787 [Fbk->NoF]: browser hangs with exec()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57712@lists.php.net to get a copy of this message
ID: 27787 Updated by: sniper@php.net Reported By: vardemor at hotmail dot com -Status: Feedback +Status: No Feedback Bug Type: Program Execution Operating System: windows 2000 professional/server PHP Version: 4.3.5 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2004-04-01 14:21:10] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-03-30 18:04:28] vardemor at hotmail dot com Description: ------------ I've been trying to call a Win NT executable from a PHP4 script and the result is very strange. The browser hangs, and not finish to show results. If I stop the navigation, nothing appens. The script execute an win app like that: <? //...more code here.. exec("c:\appdir\appname.exe"); //...more code here.. ?> The code after the execution is not show in the browser. The app executes normally, but after the execution the script maybe hangs the browser. PHP was installed like a ISAPI module, not CGI. All help appreciated. Reproduce code: --------------- <? $server_path = "c:\\sites\\mysite\\uploaded\\"; mt_srand((double)microtime()*1000000); $filename_doc = strval(mt_rand(1, intval(1000))) . ".doc"; move_uploaded_file($_FILES['userfile']['tmp_name'], $server_path . $filename_doc); $filename = strval(mt_rand(1, intval(1000))) . ".htm"; $arr = array(); $exe_app = $server_path . "ConvertDoc.exe"; $params = " /S " . $server_path . $filename_doc . " /F9 /T " . $server_path . $filename . " /C4 /M2 /L " . $server_path . "wordlog.log /V"; exec($exe_app . $params, $arr, $return_val); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27787&edit=1

« previous php.bugs (#57712) next »