go to bug id or search bugs for
the "system", "exec" or "passthru" function cannot support
the background process, such as :
The functions will not continue untill "/mycommand/myprog"
is finished, but I wish the PHP can return at once to continue after the myprog is started not ended.
Add a Patch
Add a Pull Request
Have you tried disabling safe_mode? The command will not be stripped of "questionable" characters if safe_mode is disabled.
This is not a bug. From the manual (http://www.php.net/manual/en/function.exec.php):
"Note also that if you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends."
Try changing your code from:
system("/mycommand/myprog > /dev/null &");