php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59590 Expect broken after upgrading from 0.2.7 0.2.8
Submitted: 2011-01-25 15:47 UTC Modified: 2011-01-25 16:09 UTC
From: larry dot l dot low at gmail dot com Assigned:
Status: Closed Package: expect (PECL)
PHP Version: 5.2.10 OS: CentOS 5.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: larry dot l dot low at gmail dot com
New email:
PHP Version: OS:

 

 [2011-01-25 15:47 UTC] larry dot l dot low at gmail dot com
Description:
------------
Using either of the below no longer work when upgrading to 0.2.8.  $e is not null but the ssh command does not seem to execute.


Reproduce code:
---------------
$e = expect_popen('ssh -o "StrictHostKeyChecking no" -p 22 user@myhost');
print get_resource_type($e); # outputs stream

or

$e = fopen('expect://ssh -o "StrictHostKeyChecking no" -p 22 user@myhost');
print get_resource_type($e); # outputs stream

Expected result:
----------------
Command to be executed.

Actual result:
--------------
Command is not executed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-25 15:54 UTC] larry dot l dot low at gmail dot com
I've identified the problem.  There is no default for expect.match_max so if it is not set expect now fails.
 [2011-01-25 16:09 UTC] spektom at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/expect

Thank you for your report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC