Exit status 11 in exec'd CLI script
Posted: 2011-03-11T16:07:10-07:00
I need to thumb images in a separate process while the server sends an HTTP response, so I'm exec'ing a PHP CLI script. When the script is run directly by CLI, it works fine; but when I exec it, Imagick forces the exit status to 11 despite my exit(0). The latest point at which I can exit to prevent the 11 status is just before flattenImages is called.
PHP CLI source: http://codepad.org/WTHOiWw0 (designed for execution either as ordinary PHP or via CLI)
example CLI invocation: php -f lib/php/thumb_test.php -- img=om3e2a
issue history: http://stackoverflow.com/questions/5255 ... es-it-mean
I tried to minimize that test-case by taking out all the validation and database interaction, but when I tried the 11 status left.
Thanks for any help.
PHP CLI source: http://codepad.org/WTHOiWw0 (designed for execution either as ordinary PHP or via CLI)
example CLI invocation: php -f lib/php/thumb_test.php -- img=om3e2a
issue history: http://stackoverflow.com/questions/5255 ... es-it-mean
I tried to minimize that test-case by taking out all the validation and database interaction, but when I tried the 11 status left.
Thanks for any help.