#23065 [Opn->Bgs]: Under some circumstances retval is broken.
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 09:12:21 +0000 |
| Subject: | #23065 [Opn->Bgs]: Under some circumstances retval is broken. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38174@lists.php.net to get a copy of this message | ||
ID: 23065
Updated by: sniper@php.net
Reported By: bole at EUnet dot yu
-Status: Open
+Status: Bogus
Bug Type: Program Execution
Operating System: Linux, 2.4.20
PHP Version: 4.3.2RC1
New Comment:
It's the retval from ssh not your script.
Previous Comments:
------------------------------------------------------------------------
[2003-04-05 15:46:14] bole at EUnet dot yu
Hmm.. this one is a little bit tricky.
I do something like this:
system ("/usr/bin/ssh -l someuser somehost /path/somescr.pl",
$return);
Executing that command (from the same user as apache runs) back EVERY
TIME correct retval.
But, when called from Apache+PHP (no matter if safe_mode is enabled nor
disabled) and if somescr.pl outputs something on STDOUT, retval
randomly vary (0 or 255).
somescr.pl is:
#! /usr/bin/perl
print "OK";
exit 0;
Tried exec() and passthru (), results are the same.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23065&edit=1