#33973 [Opn->Csd]: using ob_start(create_function(...)): will not show up in ob_list_handlers()

From: Date: Wed, 03 Aug 2005 16:18:49 +0000
Subject: #33973 [Opn->Csd]: using ob_start(create_function(...)): will not show up in ob_list_handlers()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369466@lists.php.net to get a copy of this message
ID: 33973 Updated by: nlopess@php.net Reported By: php at koterov dot ru -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: * PHP Version: 5CVS, 4CVS (2005-08-03) New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2005-08-03 15:24:53] sniper@php.net Anonymous is anonymous. Need to document this though. ------------------------------------------------------------------------ [2005-08-03 12:30:04] php at koterov dot ru Description: ------------ Seems ob_list_handlers() cannot work with functions created dynamically using create_function(). "default output handler" is returned. Reproduce code: --------------- <?php ob_start(create_function('$s', 'return $s;')); $list = ob_list_handlers(); var_dump($list); ?> Expected result: ---------------- array(1) { [0]=> string(...) "name of dynamically created function" } Actual result: -------------- array(1) { [0]=> string(22) "default output handler" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33973&edit=1

« previous php.doc (#969369466) next »