Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#30250 [Opn->Csd]: final keyword for class variables?
ID:               30250
Updated by:       nlopess@php.net
Reported By:      nut at phpnut dot com
-Status:           Open
+Status:           Closed
Bug Type:         Documentation problem
Operating System: Linux
PHP Version:      5.0.1
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2004-09-27 09:09:27] derick@php.net

docs are wrong.

------------------------------------------------------------------------

[2004-09-27 04:00:17] nut at phpnut dot com

Description:
------------
Tried using the final keyword on a class variable per the docs

Final Keyword

PHP 5 introduces the final keyword, which prevents child classes from
overriding a method or variable by prefixing the definition with final.


On windows system running 5.0.2 also on Linux running 5.0.1

<?php

class Foo
{
final $FooVersion;
}
?>

Returns:

Cannot declare property Foo::$FooVersion final, the final modifier is
allowed only for methods


Is this a bug or are the docs wrong?



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=30250&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
nlopess@php.net
09-28-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:30 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.