ID: 33036 Updated by: [EMAIL PROTECTED] 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