From: colin at grandecom dot com
Operating system: Solaris 2.8
PHP version: 4.3.3
PHP Bug Type: Program Execution
Bug description: All exec, passthru, system, shell execution commands fail intermittently.

At certain times (no discernible load, nor any unusually
high memory or swap usage, etc.) all shell exec commands
fail. Typically it will last a short period of time, and
then all commands work fine. Restarting apache does not
appear to cure or improve the situation. Below are my

My configure line:
../configure --with-apxs=/usr/local/apache/bin/apxs
--with-oracle=/opt/oracle --with-snmp=/usr/local --with-curl=/opt
--with-gd --with-zlib-dir=/usr/local/lib

Other information:
Sun E250, 2x296mhz, 1024MB RAM, gcc 2.95.2

Changes to php.ini from php.ini-dist:
register_globals = On

Here are some error examples from various execs:
Warning: shell_exec(): Unable to execute 'nslookup -timeout=3
2>/dev/null' in /usr/local/apache/htdocs/my.php on line 39
Warning: system(): Unable to fork [/opt/qip/usr/bin/qping -v -r 3 -t 250] in /usr/local/apache/htdocs/my.php on line 79
Warning: passthru(): Unable to fork [/opt/qip/usr/bin/qping -v -r 3 -t 250] in /usr/local/apache/htdocs/my.php on line 78

Reproduce code:
echo "<pre>"; system("ping -s $ip 56 10"); echo "</pre>";

Expected result:
Warning: system(): Unable to fork [ping -s 56 10] in
/usr/local/apache/htdocs/ping.php on line 55

Actual result:
Command simply doesn't execute, program continues without
a problem or error.

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]