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:             Closed
 Type:               Bug
 Package:            HTTP related
 Operating System:   Windows
 PHP Version:        5.4.0alpha1
-Assigned To:        
+Assigned To:        bjori
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-07-06 16:38:57] bj...@php.net

Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=313026
Log: Fixed bug#55084 (Function registered by header_register_callback is
called only once per process). (Hannes)

also fixed an issue when header()s are sent from the callback function

------------------------------------------------------------------------
[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