note 48190 deleted from function.system by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 10:13:30 +0000 |
| Subject: | note 48190 deleted from function.system by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196910@lists.php.net to get a copy of this message | ||
Note Submitter: cabel at panic dot com
----
We were using system() to call a Cocoa command-line binary from PHP using Mac OS X. The Cocoa binary
was simply not working -- no error message, no logging, nothing, it would just die within moments of
launching from the system() function and we'd get no results.
The answer now seems obvious -- we were hitting PHP's memory limit. We did not consider that
PHP's memory limit would also extend to programs launched via system().
So, if your system() call is failing mysteriously and giving no results, after trying the obvious
(permissions, executable, etc.) considering upping:
memory_limit
in your php.ini from 8M to something larger.