From:             bole at EUnet dot yu
Operating system: Linux, 2.4.20
PHP version:      4.3.2RC1
PHP Bug Type:     Program Execution
Bug description:  Under some circumstances retval is broken.

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 bug report at http://bugs.php.net/?id=23065&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23065&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23065&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23065&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23065&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23065&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23065&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23065&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23065&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23065&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23065&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23065&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23065&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23065&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23065&r=gnused

Reply via email to