Edit report at https://bugs.php.net/bug.php?id=55084&edit=1

 ID:                 55084
 Updated by:         bj...@php.net
 Reported by:        vr...@php.net
 Summary:            Function registered by header_register_callback is
                     called only once per process
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            HTTP related
 Operating System:   Windows
 PHP Version:        5.4.0alpha1
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2011-06-30 07:32:54] vr...@php.net

Description:
------------
I use Apache 2.2.19. Function registered by header_register_callback() is 
called only after the server restart.

Test script:
---------------
<?php
header_register_callback(function () {
    echo "OK";
});
?>


Expected result:
----------------
"OK" each time the script is run.

Actual result:
--------------
"OK" only for the first time, nothing in the next runs.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55084&edit=1

Reply via email to