php.net |  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
 [2007-11-26 20:26 UTC] deminy at deminy dot net
Description:
------------
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: 

http://www.deminy.net/php/bugs/php_bug_tick.tar.gz

The bug reported here is similar to http://bugs.php.net/bug.php?id=11536 (register_tick_function weirdness)

Reproduce code:
---------------
The code and other information are put here:
http://www.deminy.net/php/bugs/php_bug_tick.tar.gz

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



Patches

Pull Requests

History

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

 [2008-07-18 16:13 UTC] jani@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC