Bug #12300 Updated: exec() family problems

From: Date: Wed, 24 Oct 2001 10:30:21 +0000
Subject: Bug #12300 Updated: exec() family problems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68937@lists.php.net to get a copy of this message
ID: 12300
Updated by: sander
Reported By: marv@cyberia.net.lb
Old Status: Open
Status: Feedback
Bug Type: Program Execution
Operating System: Win98
PHP Version: 4.0.6
New Comment:

Can you try the latest CVS? Or a development-binary from http://208.44.124.20/php-dev-win/

Does this problem still occur?

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

[2001-07-21 14:41:42] marv@cyberia.net.lb

exec(), system(), etc. cause php to hang when called through the browser. when executed from the
command line, it works fine.

I'm running PHP4.06, PWS, Win98SE. I'm using the PHP binary downloaded from php.net.

I have a batch file, test.bat which contains one line:
echo Hello

My PHP script is:

$cmd="test.bat";
echo "Executing command: [$cmd]\n";
system($cmd,$value);
echo "Return value is: $value\n";

When I run this from the command line, ie. php test.bat, it works as expected. When I call the
script from the browser, a command window opens and closes quickly, I get no output in the browser
and the browser keeps trying to load the script. If I hit stop, the browser stops with nothing
retrieved at all. PHP is still listed in the task list when pressing CTRL+ALT+DEL.


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



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



Thread (3 messages)

« previous php.dev (#68937) next »