PHP 4.0 Bug #9983 Updated: String concatination
| From: | sniper@php.net | Date: | Mon, 26 Mar 2001 08:46:53 +0000 |
| Subject: | PHP 4.0 Bug #9983 Updated: String concatination | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49937@lists.php.net to get a copy of this message | ||
ID: 9983
Updated by: sniper
Reported By: yohgaki@dd.iij4u.or.jp
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Please read this manual page:
http://www.php.net/manual/en/language.operators.precedence.php
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-03-26 00:17:05] yohgaki@dd.iij4u.or.jp
Following code, needs "()" to get expected value.
$bar = true;
$str = "TEST". ($bar ? 'true' : 'false') ."TEST";
Without "(" and ")", only "true" will be in $str.
(PHP4.0.4pl1/Apache DSO/Linux, PHP4.0.5RC1/Apache DSO/W2K Server)
If this is expected behavior in PHP, it would better to be described in the Manual.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9983&edit=2