php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30443 Documentation error on language.oop5.basic.php
Submitted: 2004-10-15 11:50 UTC Modified: 2004-10-15 12:45 UTC
From: alex at passant dot org Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.0.1 OS:
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 49 = ?
Subscribe to this entry?

 
 [2004-10-15 11:50 UTC] alex at passant dot org
Description:
------------
On http://www.php.net/manual/en/language.oop5.basic.php, you wrote:

"Every class definition begins with the keyword class, followed by a class name, which can be any name that isn't a  reserved word in PHP."

Then:

"
<?php
class SimpleClass
{

"

So I think there's a mistake in the first sentence, as - I assume - class definition should begin ith the class name, followed by the 'class' keyword.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-15 12:24 UTC] tularis@php.net
I quote "Every class definition begins with the keyword class". It seems it does begin with the keyword 'class' ('class' is the keyword). And THEN it shows the name of the class to be defined, in this example being 'SimpleClass'. So, first the keyword, followed by a valid class name.

There is no such bug in documentation.
 [2004-10-15 12:39 UTC] alex at passant dot org
You're right, I thaught it was dealing about class name, (instead of class definition).

Sorry.
 [2004-10-15 12:45 UTC] goba@php.net
User error -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 18:01:28 2024 UTC