Bug #55460 [Com]: if computing an expression in die(), the cgi engine crashes
| From: | reeze dot xia at gmail dot com | Date: | Sat, 08 Sep 2012 15:47:26 +0000 |
| Subject: | Bug #55460 [Com]: if computing an expression in die(), the cgi engine crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173261@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55460&edit=1
ID: 55460
Comment by: reeze dot xia at gmail dot com
Reported by: da at infomantis dot de
Summary: if computing an expression in die(), the cgi engine
crashes
Status: Feedback
Type: Bug
Package: CGI/CLI related
Operating System: Windows Vista
PHP Version: 5.4.0alpha3
Block user comment: N
Private report: N
New Comment:
I couldn't reproduce that in PHP5.4 with php-cgi in Mac OS X
Previous Comments:
------------------------------------------------------------------------
[2011-08-19 22:49:29] felipe@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
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.
------------------------------------------------------------------------
[2011-08-19 10:38:03] da at infomantis dot de
Description:
------------
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:
---------------
<?php
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55460&edit=1