|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-25 16:26 UTC] spektom at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
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