Bug #55084 [Opn->Csd]: Function registered by header_register_callback is called only once per process
| From: | bjori@php.net | Date: | Wed, 06 Jul 2011 20:39:18 +0000 |
| Subject: | Bug #55084 [Opn->Csd]: 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-161670@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: 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] bjori@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] 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