#36288 [Csd]: fastcgi crashes on ternary operator and $foo{x}
| From: | tony2001@php.net | Date: | Sun, 05 Feb 2006 09:25:59 +0000 |
| Subject: | #36288 [Csd]: fastcgi crashes on ternary operator and $foo{x} | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92921@lists.php.net to get a copy of this message | ||
ID: 36288
Updated by: tony2001@php.net
Reported By: scripts at freq9 dot de
Status: Closed
Bug Type: Variables related
Operating System: Windows XP Prof.
PHP Version: 6CVS-2006-02-04 (snap)
New Comment:
Please report PECL bugs to PECL bugsystem.
Previous Comments:
------------------------------------------------------------------------
[2006-02-05 01:25:13] pollita@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Bug was in PECL/operator extension. Forgot to take into account string
offsets.
------------------------------------------------------------------------
[2006-02-05 00:05:28] scripts at freq9 dot de
if php_operator is loaded fastcgi/cli crashes!
-----
cli# php -f test.php
> CLI hat ein Problem festgestellt und muss beendet werden.
-----
-----
browser# http://localhost/test.php
> CGI / FastCGI hat ein Problem festgestellt und muss beendet werden.
-----
(german)
------------------------------------------------------------------------
[2006-02-04 23:35:14] tony2001@php.net
Does CLI work in the same time?
Please explain what does it mean "crashes" and provide more info.
Also, I can't reproduce it on Linux.
------------------------------------------------------------------------
[2006-02-04 23:17:14] scripts at freq9 dot de
Description:
------------
When I execute this code, fastcgi crashes and i´ll get an Error 500.
Reproduce code:
---------------
<?php
$foo = 'hello';
$bar = 'world';
$fname = ($foo{4} != 'x') ? /* condition */
$foo.' '.$bar : /* is true */
$foo.$bar; /* is false */
echo $fname;
?>
Expected result:
----------------
hello world
Actual result:
--------------
FastCGI crashes & Error 500 (Premature end of script headers)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36288&edit=1