Edit report at https://bugs.php.net/bug.php?id=13&edit=1
ID: 13 Comment by: junxing dot lin at yahoo dot com Reported by: jan at nrw dot net Summary: Indirect vars don't work anymore Status: Closed Type: Bug Package: Parser error Operating System: BSDI2.1 PHP Version: 3.0b3 Block user comment: N Private report: N New Comment: http://www.chishairstraighteners.net chi flat iron http://www.chishairstraighteners.net chi flat irons http://www.chishairstraighteners.net chi hair straightener http://www.chishairstraighteners.net chi hair straighteners Previous Comments: ------------------------------------------------------------------------ [1998-01-27 11:14:06] rasmus Not really a bug. More like a change in behaviour. The string embedded variable handling in PHP3 only handles simple cases. The way around the problem is to use: echo "normal string stuff ".$$var." more string stuff"; We will however consider this report a "request for feature" ;) ------------------------------------------------------------------------ [1998-01-27 04:53:27] jan at nrw dot net The following works under php2, but fails under php3: $a="b"; $b="Test!!"; echo "$$a"; Php3 says: "$b"; Php2 says: "Test!!"; This breaks nearly all my apps... :-/ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=13&edit=1
