|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-04 20:38 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
-Package: Apache related
+Package: Reproducible crash
[2013-09-04 20:38 UTC] aharvey@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 11:00:02 2025 UTC |
Description: ------------ PHP version 5.3.8 When a function return is in write mode inside a foreach loop, no exception is thrown. Fatal exception 'Can't use function return value in write context' should be thrown but instead, Apache crashes with following error details (dutch): Gebeurtenisnaam van probleem: APPCRASH Naam van de toepassing: httpd.exe Versie van toepassing: 2.2.21.0 Tijdstempel van toepassing: 4e6b3136 Naam van foutmodule: php5ts.dll Versie van foutmodule: 5.3.8.0 Tijdstempel van foutmodule: 4e537a04 Uitzonderingscode: c0000005 Uitzonderingsmarge: 0003c45d Versie van besturingssysteem: 6.0.6002.2.2.0.256.6 Landinstelling-id: 2067 Aanvullende informatie 1: f1e8 Aanvullende informatie 2: d4eb7cf28a4f910486e91a11f70d294f Aanvullende informatie 3: 9e36 Aanvullende informatie 4: 0fa4d7271c395f5ea87ec2c924074b62 Test script: --------------- foreach($values as $value) { if(!empty(trim($value))){ $result = $value;} } Expected result: ---------------- Fatal exception: Can't use function return value in write context Actual result: -------------- Apache crashes