|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-15 17:34 UTC] tony2001@php.net
[2005-05-16 17:26 UTC] sruwhof at intervisionit dot nl
[2005-05-16 19:29 UTC] sruwhof at intervisionit dot nl
[2005-05-16 20:43 UTC] tony2001@php.net
[2005-05-24 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 20:00:01 2025 UTC |
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