#23092 [NEW]: exec("foo.php") hangs

From: Date: Mon, 07 Apr 2003 15:06:08 +0000
Subject: #23092 [NEW]: exec("foo.php") hangs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37275@lists.php.net to get a copy of this message
From: jlg at huelladigital dot net Operating system: Redhat 7.3 (kernel 2.4.18) PHP version: 4.3.1 PHP Bug Type: Apache related Bug description: exec("foo.php") hangs I have php compiled as cgi in /usr/local/bin/php: ./configure --with-mysql --enable-ftp --enable-sockets --with-ncurses --enable-cgi I have 2 scripts, named foo1 and foo2: foo1: #!/usr/local/bin/php <?php exec("./foo2"); ?> foo2: #!/usr/local/bin/php <?php print "foo"; ?> When I call foo1 from shell the result is OK (it echoes "foo"). But when I call it as a cgi (http://myserver/cgi-bin/foo1) it calls recursively the script "foo2" and hangs. I must restart apache. It is Apache/1.3.27. The script directory cgi-bin has "Options ExecCGI" directive. -- Edit bug report at http://bugs.php.net/?id=23092&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23092&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23092&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23092&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23092&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23092&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23092&r=support Expected behavior: http://bugs.php.net/fix.php?id=23092&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23092&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23092&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23092&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23092&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23092&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23092&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23092&r=gnused

« previous php.bugs (#37275) next »