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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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: Thu Dec 12 14:01:28 2024 UTC