|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43418 tick doesn't work as expected when using Apache 2.0 Handler as interface
Submitted: 2007-11-26 20:26 UTC Modified: 2008-07-18 16:13 UTC
From: deminy at deminy dot net Assigned:
Status: Wont fix Package: Apache2 related
PHP Version: 5.2.5 OS: Ubuntu, SunOS, etc
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-11-26 20:26 UTC] deminy at deminy dot net
I wrote a script to test the behavior of construct "declare/tick", and found that the HTTP outputs among different requests were inconsistent (The outputs were supposed to be the same according to the official documentation).

I have tested the same script on three different web servers (which have different versions of PHP installed: 4.4.7, 5.1.6, 5.2.5, etc). I also tested the script using other different ways (from command line, running the script as a CGI script, etc). The script and other releated information (including PHP information) was put at this URL:

The bug reported here is similar to (register_tick_function weirdness)

Reproduce code:
The code and other information are put here:

Expected result:
All HTTP requests to the script sould return only 5 lines beside the 1st line (which contains a string "#!/opt/php5/bin/php").

Actual result:
Basically, for the 1st HTTP request, the output contains 5 lines; for the 2nd request, the output may contain 10 lines; for the 3nd request, the output may contain 15 lines ......for the Nth request, the output contains 5 lines again, and so on ......


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-27 12:53 UTC]
See also bug #24943

 [2008-07-18 16:13 UTC]
Ticks are deprecated in PHP 5.3.0 and will be completely removed in PHP 6. We're not going to waste time trying to fix the inherently broken thing. 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Oct 06 17:05:51 2022 UTC