|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-30 17:08 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 09:00:01 2025 UTC |
Description: ------------ Manual is a bit unclear about static methods. It doesn't imply that calling non-static methods in a static context (using the paamayim nekudotayim operator) is still valid. Reproduce code: --------------- <?php class Foo { public function __construct() { } public function fromObject() { echo 'A call from the object <br/>'; } public static function fromStatic() { echo 'A static call <br/>'; } } Foo::fromObject(); Foo::fromStatic(); ?>