| nlopess@php.net 2004-09-28, 3:58 am |
| 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
|