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

Reply via email to