In PHP, is it possible to create an instance of an class without calling class's constructor ?
        Posted  
        
            by Rachel
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rachel
        
        
        
        Published on 2010-03-31T19:29:15Z
        Indexed on 
            2010/03/31
            19:33 UTC
        
        
        Read the original article
        Hit count: 330
        
By any means, is it possible to create an instance of an php class without calling its constructor ?
I have Class A and while creating an instance of it am passing file and in constructor of Class A am opening the file.
Now in Class A, there is function which I need to call but am not required to pass file and so there is not need to use constructor functionality of opening file as am not passing file.
So my question is, Is it possible by any means to create an instance of an PHP class without calling its constructor ?
© Stack Overflow or respective owner