note 54582 added to function.ob-start

From: Date: Fri, 08 Jul 2005 12:46:49 +0000
Subject: note 54582 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-91670@lists.php.net to get a copy of this message
These are handy. First one has been mentioned before. ob_start( array( 'lib_class', 'parse_output' ) ); ob_start( array( $this, 'parse_output' ) ); Note: $this is NOT a reference. Anything the callback saves or logs disappears in the clone ob_start works with. It does enable the callback to work with the attributes of $this, like $this->ar_tpl_value or whatever your style is. The manual says: "If the optional parameter chunk_size is passed, the callback function is called on every first newline after chunk_size bytes of output. The output_callback parameter may be bypassed by passing a NULL value." This doesn't work with my 4.3.11. Might be the Zend optimizer though. Daren't turn it off to go see. ---- Manual Page -- http://www.php.net/manual/en/function.ob-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54582 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54582&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54582&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91670) next »