|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-10-27 01:17 UTC] stefan at konink dot de
Description:
------------
When a php-cgi issues an shell_exec that outputs code that is expected to be stored in the variable before it. The output is in fact leaked back over the fcgi connection, which will issue a 500.
I'm using the Cherokee webserver.
Reproduce code:
---------------
$debug = shell_exec('/usr/bin/nohup /usr/bin/inkscape -z --file='.$svgfile.' --export-width='.$width.' --export-height='.$height.' --export-png='.$pngfile);
The work around seems to be to add:
.' 2>&1 1>/dev/null'
Expected result:
----------------
Output to be stored in $debug.
Actual result:
--------------
Outputted over the fcgi line:
00000000 2f75 7372 2f62 696e 2f6e 6f68 7570 3a20 /usr/bin/nohup:.
handler_fcgi.c:83: Parsing error: unknown version
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Could you please try the following and report what happens ? <?php file_put_contents("php://stderr", "php stderr\n"); echo "php stdout\n"; ?>