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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Thu Mar 21 01:01:30 2019 UTC