#35858 [Csd->Bgs]: echo ternaries problem
| From: | derick@php.net | Date: | Sat, 31 Dec 2005 12:36:43 +0000 |
| Subject: | #35858 [Csd->Bgs]: echo ternaries problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91301@lists.php.net to get a copy of this message | ||
ID: 35858
Updated by: derick@php.net
Reported By: mattias dot segerdahl at bitcom dot se
-Status: Closed
+Status: Bogus
Bug Type: *General Issues
Operating System: Mandriva latest
PHP Version: 5.1.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
. precedes ?: and thus the concattenation is done first.
Previous Comments:
------------------------------------------------------------------------
[2005-12-31 13:36:30] mattias dot segerdahl at bitcom dot se
Didn't see the concatination.. sorry for the bugreport
------------------------------------------------------------------------
[2005-12-31 13:33:19] mattias dot segerdahl at bitcom dot se
Description:
------------
Echo without ternaries disregards some output
Reproduce code:
---------------
$true = true; echo "Is this true or false : " . $true?'true':'false';
Expected result:
----------------
Is this true or false : true
Actual result:
--------------
true
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35858&edit=1