all exec related PHP functions segfault
问题 I build PHP for android using the NDK. Most functions tested so far run perfectly, except... All exec related php function (like exec, shell_exec, popen, ..) all sefgault. php sample code (test.php) <?php $s=shell_exec("ls"); echo $s ?> result: # php test.php [1] Segmentation fault I added some debug code to the internal shell_exec function PHP_FUNCTION(shell_exec) { FILE *in; size_t total_readbytes; zval **cmd; char *ret; php_stream *stream; if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1