note 89025 added to language.oop5.static

From: Date: Wed, 18 Feb 2009 18:03:54 +0000
Subject: note 89025 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-150809@lists.php.net to get a copy of this message
-Great example (yesmarklapointe) I would like to just add one note. When using E_STRICT error reporting: error_reporting(E_ALL | E_STRICT); you will see a warning message when calling a non-static method, statically. Example output: Strict Standards: Non-static method User::me() should not be called statically in /home/pagepage/public_html/php.learn.static.php on line 70 print me ---- Server IP: 64.71.164.2 Probable Submitter: 209.198.133.178 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/89025 Del: integrated -- https://master.php.net/note/delete/89025/integrated Del: useless -- https://master.php.net/note/delete/89025/useless Del: bad code -- https://master.php.net/note/delete/89025/bad+code Del: spam -- https://master.php.net/note/delete/89025/spam Del: non-english -- https://master.php.net/note/delete/89025/non-english Del: in docs -- https://master.php.net/note/delete/89025/in+docs Del: other reasons-- https://master.php.net/note/delete/89025 Reject -- https://master.php.net/note/reject/89025 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150809) next »