ID:               22946
 Comment by:       ross at rbecker dot org
 Reported By:      massimo at tuxel dot com
 Status:           No Feedback
 Bug Type:         Program Execution
 Operating System: SuSE Linux 8.1
 PHP Version:      4.3.1
 New Comment:

I am experiencing this same issue on SuSE 9.1 with PHP 4.3.4 and
OpenSSH 3.8. This is a more recent PHP than the one you offered up to
solve the problem.

I have narrowed it down to exec'ing ssh specifically. I am using
passwordless public/private key authentication to a user account with
very limited priveledges on the remote host.

The ssh command to the remote host is actually executed, but PHP never
comes back.

The problem occurs using system(),shell_exec(), and popen().

I have reproduced this with a script as simple as:

<?php
system("ssh [EMAIL PROTECTED] mycommand_with_no_output");
?>
HTML GOES HERE


The result is that PHP never comes back, and it does not error out
either.  Executing this via the command line works fine, executing it
as a web-script hangs permanently.


Previous Comments:
------------------------------------------------------------------------

[2003-04-21 09:19:43] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2003-04-09 16:48:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

------------------------------------------------------------------------

[2003-03-28 18:27:02] massimo at tuxel dot com

Using ssh through the various exec functions usually hangs 
php execution. Very strange that: 
exec('/usr/bin/scp [EMAIL PROTECTED]:/what/ever/file .') 
works fine, while 
exec('/usr/bin/ssh [EMAIL PROTECTED] /what/ever/execfile'), 
where "execfile" is any executable file, makes the 
execution of the php script hang. 
 
Any help/reproduction/confirmation of this very 
appreciated. 

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22946&edit=1

Reply via email to