|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-09-10 20:06 UTC] sniper@php.net
  [2003-09-10 20:07 UTC] sniper@php.net
  [2003-09-10 21:05 UTC] colin at grandecom dot com
  [2003-10-16 09:25 UTC] bk at galaxy dot net
  [2003-10-16 10:28 UTC] bk at galaxy dot net
  [2003-10-16 13:17 UTC] colin at grandecom dot com
  [2003-10-18 11:14 UTC] bk at galaxy dot net
  [2003-10-18 23:11 UTC] sniper@php.net
  [2003-10-21 21:19 UTC] colin at grandecom dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ 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 particulars. 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 10.130.0.1 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 10.130.2.163] 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 10.130.2.163] 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 10.130.2.163 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.