Bug #64245 [Opn->Csd]: concatenating reference & string is confusing

From: Date: Tue, 19 Feb 2013 17:14:23 +0000
Subject: Bug #64245 [Opn->Csd]: concatenating reference & string is confusing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-177215@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64245&edit=1 ID: 64245 User updated by: fool at example dot com Reported by: fool at example dot com Summary: concatenating reference & string is confusing -Status: Open +Status: Closed Type: Bug Package: Variables related Operating System: archlinux PHP Version: 5.4.11 Block user comment: N Private report: N New Comment: Assign By Reference Previous Comments: ------------------------------------------------------------------------ [2013-02-19 17:00:56] fool at example dot com Description: ------------ $ php -a Interactive shell php > $a = 'ab'; php > $b = 'cc'.&$a; PHP Parse error: syntax error, unexpected '&' in php shell code on line 1 Parse error: syntax error, unexpected '&' in php shell code on line 1 php > $b = &$a.'cc'; // no error php > echo $b; // and 'cc' is ignored abphp > ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64245&edit=1

« previous php.bugs (#177215) next »