|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55460 if computing an expression in die(), the cgi engine crashes
Submitted: 2011-08-19 10:38 UTC Modified: 2013-02-18 00:34 UTC
From: da at infomantis dot de Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.4.0alpha3 OS: Windows Vista
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: da at infomantis dot de
New email:
PHP Version: OS:


 [2011-08-19 10:38 UTC] da at infomantis dot de
If you end a script by calling "die()", an give an expression as parameter, that must be computed first, the CGI/CLI Engine crashes. Passing a normal string causes no problems, but everything complexer than a literal(object access, simple arithmetic expressions like 1+1, even concatenation of two strings) leads to an engine crash.

Test script:
echo 'Now its gonna crashing'.PHP_EOL;
die('complex '.'expression');

Expected result:
Now its gonna crashing
complex expression

Actual result:
Now its gonna crashing
complex expression
Windows informs me, that the CGI/CLI engine encountered an unidentified failure and must be restarted.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-19 22:49 UTC]
-Status: Open +Status: Feedback
 [2011-08-19 22:49 UTC]
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 for *NIX and for Win32

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.

 [2012-09-08 15:47 UTC] reeze dot xia at gmail dot com
I couldn't reproduce that in PHP5.4 with php-cgi in Mac OS X
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 17:01:34 2024 UTC