ID:               33973
 Updated by:       [EMAIL PROTECTED]
-Summary:          ob_start(create_function(...)): conflict with
                   ob_list_handlers().
 Reported By:      php at koterov dot ru
-Status:           Open
+Status:           Verified
 Bug Type:         Output Control
-Operating System: any
+Operating System: *
-PHP Version:      4.3.11
+PHP Version:      5CVS, 4CVS (2005-08-03)


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to