php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59591 expect.logfile set to php://output not working
Submitted: 2011-01-25 16:09 UTC Modified: 2011-01-25 16:26 UTC
From: larry dot l dot low at gmail dot com Assigned:
Status: Not a bug 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 16:09 UTC] larry dot l dot low at gmail dot com
Description:
------------
I'm trying to set expect.logfile to use the php output buffer but it is not working.  I get nothing in the buffer.

Reproduce code:
---------------
ob_start();
ini_set('expect.loguser',0);
ini_set('expect.logfile','php://output');
ini_set('expect.timeout',10);
ini_set('expect.match_max',1000);

$e = fopen('expect://echo Just a test','r');

switch (expect_expectl($e,array(array('something','something')))) {
        case EXP_TIMEOUT:
        case EXP_EOF:
        default:
                ob_flush();
                break;
}

fclose($e);

Expected result:
----------------
output of 'Just a test'

Actual result:
--------------
no output

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-25 16:26 UTC] spektom at gmail dot com
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

php://output is not available in PHP-CLI.
Please run PHP-CGI instead.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC