#33036 [Opn->Fbk]: Apache crashes when type hints are used in a method
| From: | tony2001@php.net | Date: | Sun, 15 May 2005 15:34:07 +0000 |
| Subject: | #33036 [Opn->Fbk]: Apache crashes when type hints are used in a method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79024@lists.php.net to get a copy of this message | ||
ID: 33036
Updated by: tony2001@php.net
Reported By: sruwhof at intervisionit dot nl
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: *
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-05-15 16:06:12] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33036&edit=1