#43418 [NEW]: tick doesn't work as expected when using Apache 2.0 Handler as interface
| From: | deminy at deminy dot net | Date: | Mon, 26 Nov 2007 20:26:36 +0000 |
| Subject: | #43418 [NEW]: tick doesn't work as expected when using Apache 2.0 Handler as interface | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-120107@lists.php.net to get a copy of this message | ||
From: deminy at deminy dot net
Operating system: Ubuntu, SunOS, etc
PHP version: 5.2.5
PHP Bug Type: Output Control
Bug description: tick doesn't work as expected when using Apache 2.0 Handler as interface
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 ......
--
Edit bug report at http://bugs.php.net/?id=43418&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43418&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43418&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43418&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43418&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43418&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43418&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43418&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43418&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43418&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43418&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43418&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43418&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43418&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43418&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43418&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43418&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43418&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43418&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43418&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43418&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43418&r=mysqlcfg