Date: 08/11/00
- Next message: Hartmut Holzgraefe: "Re: [PHP-DEV] Re: PHP 4.0 Bug #6080 Updated: fsockopen example uses "\n" for HTTP communication"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4699 Updated: phpinfo causes a virtual server to stop responding"
- In reply to: Sam Leibowitz: "[PHP-DEV] arithmetic operators in member variable assignments"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] arithmetic operators in member variable assignments"
- Reply: Andi Gutmans: "Re: [PHP-DEV] arithmetic operators in member variable assignments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
SL>> Upon experimentation, I was able to reproduce the error reliably with
SL>> the following code:
SL>>
SL>> <?
SL>> class thing {
SL>> var $member = 12 * 12;
SL>> }
SL>> ?>
SL>>
SL>> That produces a parse error (expecting "," or ";").
SL>>
Sure. Var initializers can be only constants. 12*12 isn't constant, it's
an experssion.
-- Stanislav Malyshev stas <email protected> +972-3-6139665 ext.106-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Hartmut Holzgraefe: "Re: [PHP-DEV] Re: PHP 4.0 Bug #6080 Updated: fsockopen example uses "\n" for HTTP communication"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4699 Updated: phpinfo causes a virtual server to stop responding"
- In reply to: Sam Leibowitz: "[PHP-DEV] arithmetic operators in member variable assignments"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] arithmetic operators in member variable assignments"
- Reply: Andi Gutmans: "Re: [PHP-DEV] arithmetic operators in member variable assignments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

