update : 2015.11.03
php.shukuma.com

검색:
 
 
Creates a new class instance without invoking the constructor.

ReflectionClass::newInstanceWithoutConstructor

(PHP >= 5.4.0)

ReflectionClass::newInstanceWithoutConstructorCreates a new class instance without invoking the constructor.

설명

public object ReflectionClass::newInstanceWithoutConstructor ( void )

Creates a new instance of the class without invoking the constructor.

인수

반환값

변경점

버전 설명
5.6.0 All internal classes can now be instantiated except for those declared final.

오류/예외

A ReflectionException if the class is an internal class that cannot be instantiated without invoking the constructor. In PHP 5.6.0 onwards, this exception is limited only to internal classes that are final.

참고