#21035 [NEW]: ternary operator can't concanenate with other strings
| From: | eric at themepark dot com | Date: | Mon, 16 Dec 2002 01:40:31 +0000 |
| Subject: | #21035 [NEW]: ternary operator can't concanenate with other strings | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-27805@lists.php.net to get a copy of this message | ||
From: eric@themepark.com
Operating system: Windows XP
PHP version: 4.2.1
PHP Bug Type: Unknown/Other Function
Bug description: ternary operator can't concanenate with other strings
$a = 'eric is a '.(1) ? 'goofball' : 'kitty-cat';
echo $a;
This snippet returns "goofball" instead of "eric is a goofball".
Eric Mueller, eric@themepark.com
--
Edit bug report at http://bugs.php.net/?id=21035&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21035&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21035&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21035&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21035&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21035&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21035&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21035&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21035&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21035&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21035&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21035&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21035&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21035&r=isapi