| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-10-11 23:25 UTC] johannes@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Sun Nov 02 22:00:01 2025 UTC | 
Description: ------------ I could call and change static variable from object or from class Reproduce code: --------------- class A{ public static $pp; public function ch(){ $this->pp+=2; print $this->pp.'<br>'; } } $b = new A(); $b->ch(); print $b->pp; Expected result: ---------------- I expected error Actual result: -------------- output is: 2 2