php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44402 Declare crashes Apache
Submitted: 2008-03-11 00:09 UTC Modified: 2008-03-11 21:34 UTC
From: kalle@php.net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.5 OS: Windows Vista
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kalle@php.net
New email:
PHP Version: OS:

 

 [2008-03-11 00:09 UTC] kalle@php.net
Description:
------------
Using the declare construct causes Apache to crash on Windows Vista, aslong the "declare(ticks=n)" is present anywhere in the code it seems to crash Apache.

I havn't tried this under IIS though and any other operating systems.

Reproduce code:
---------------
<?php
	declare(ticks=1);
?>

Or even the example on the documentation page

Expected result:
----------------
No crash

Actual result:
--------------
Windows promts me saying Apache has crashed with this message:

Problem signature:
  Problem type: APPCRASH
  Program name: httpd.exe
  Program version: 2.2.6.0
  Timestamp for program: 46deb625
  Error module name: StackHash_d351
  Error module version: 0.0.0.0
  Timestamp on error module: 00000000
  Exception code: c0000005
  Exception Shifting: 666f7270
  OS version: 6.0.6000.2.0.0.256.1
  Country standard id: 1030
  More information 1: d351
  More information 2: e4c68b1163c602091f1022ca6cd48c47
  More information 3: a7a4
  More information 4: e8322cccddd45a35753f145051c9d41d


This is a translation of the box I retrive from Windows when executing any of the above examples.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-11 00:12 UTC] kalle@php.net
Changed category to Preproducible Crash
 [2008-03-11 12:08 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2008-03-11 15:31 UTC] kalle@php.net
When I run the debug tool I get this if its what you mean:
Function     Arg 1     Arg 2     Arg 3   Source 
0x025f7816     00000001     018a6fa2     06edf990    
php5ts!php_remove_tick_function+8f     06edf990     01d1fb74     025e6c80    
php5ts!zend_llist_apply_with_argument+22     025f85ec     018c1620     01d1fb74    
php5ts!php_remove_tick_function+7b     06edbd00     00000000     06edbb30    
php5ts!zend_llist_del_element+94     06edbb30     025e6c80     00000000    
php5ts!zend_execute_scripts+107     00000000     00000000     00000000    


Heres a full screenshot of the debug report:
http://www.kalleload.com/uploads/kooaogvfial.jpg


I had to attach it to httpd.exe as I wasn't able to reproduce this in cli mode.
 [2008-03-11 21:34 UTC] jani@php.net
Please check the manual: http://www.php.net/register_tick_function
(and especially the note about threaded servers..) 

Not bug.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 05:00:03 2025 UTC