Bug #62992 [Opn->Nab]: There is a coding error in an example.

From: Date: Sun, 02 Sep 2012 14:54:07 +0000
Subject: Bug #62992 [Opn->Nab]: There is a coding error in an example.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8800@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62992&edit=1 ID: 62992 Updated by: bjori@php.net Reported by: shaquin dot 2 at live dot com Summary: There is a coding error in an example. -Status: Open +Status: Not a bug Type: Bug Package: Documentation problem Operating System: * PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Thats a perfectly valid syntax in PHP. The recommended approach in PHP5 is public/protected/private, but var is totally acceptable and is in fact just the same as doing public $prop. Previous Comments: ------------------------------------------------------------------------ [2012-09-02 03:46:44] shaquin dot 2 at live dot com Description: ------------ --- From manual page: http://www.php.net/keyword.extends.php --- var $owner; is used in the code sample, that is JavaScript syntax, not PHP syntax. It should be private $owner; or something similar. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62992&edit=1

« previous php.doc.bugs (#8800) next »