php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33036 Apache crashes when type hints are used in a method
Submitted: 2005-05-15 16:06 UTC Modified: 2005-05-24 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sruwhof at intervisionit dot nl Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.0.4 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-05-15 16:06 UTC] sruwhof at intervisionit dot nl
Description:
------------
Apache crashes when type hints are used in a method. An important term for this is that the result of the method is not saved. If you do save the result in a variable, then Apache won't crash.

My config:
PHP 5.0.4 (cli) build mar 31 2005 02:45:48
Apache 2.0.54
Windows XP SP 2

PHP runs as an apache module.

Reproduce code:
---------------
<?php
# apache crashes
class a {	
    public function a (b $p) {}	
}
class b {}

new a(new b);  // result is _not_ saved in a variable
?>



<?php
# apache doesn't crash
class a {	
    public function a (b $p) {}	
}
class b {}

$a = new a(new b);  //result is saved in a variable
?>

Expected result:
----------------
Apache crashes


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-16 17:26 UTC] sruwhof at intervisionit dot nl
I've tried PHP Version 5.0.5-dev but the bug still isn't fixed.
 [2005-05-16 19:29 UTC] sruwhof at intervisionit dot nl
Additional information:
I've got various other crashes and weird stuff happening (only when running 5.0.4, in 4.3.11 i've got no problem). I think the problem persist in the memory.

Those other crashes and weird stuff have a much larger code bases and i cant get a small reproduction codebase to submit to the bug tracker.
 [2005-05-16 20:43 UTC] tony2001@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

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.


 [2005-05-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC