|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27787 browser hangs with exec()
Submitted: 2004-03-30 18:04 UTC Modified: 2004-04-07 10:58 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: vardemor at hotmail dot com Assigned:
Status: No Feedback Package: Program Execution
PHP Version: 4.3.5 OS: windows 2000 professional/server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vardemor at hotmail dot com
New email:
PHP Version: OS:


 [2004-03-30 18:04 UTC] vardemor at hotmail dot com
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..
//...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\\";
 $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); 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-07 10:58 UTC]
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.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Mar 23 12:03:43 2023 UTC