Bug #55084 [Opn->Asn]: Function registered by header_register_callback is called only once per process
| From: | bjori@php.net | Date: | Wed, 06 Jul 2011 19:39:34 +0000 |
| Subject: | Bug #55084 [Opn->Asn]: Function registered by header_register_callback is called only once per process | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161668@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55084&edit=1
ID: 55084
Updated by: bjori@php.net
Reported by: vrana@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] vrana@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