PHP 4.0 Bug #1950: "$" not accepted in a class variable affectation

From: Date: Tue, 03 Aug 1999 16:41:18 +0000
Subject: PHP 4.0 Bug #1950: "$" not accepted in a class variable affectation
Groups: php.dev 
Request: Send a blank email to php-dev+get-9478@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Debian GNU/Linux PHP version: 4.0 Latest CVS (03/08/1999) PHP Bug Type: Scripting Engine problem Bug description: "$" not accepted in a class variable affectation The following script produces a parse error in PHP 4b2 : class foo { var $bar = "foobar$"; } I fully understand that the problem comes from the $ sign, and escaping it with a \ solves the problem, but this syntax worked with PHP 3, and simply doing $bar = "foobar$"; in the global scope works too.

« previous php.dev (#9478) next »