File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug65911.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:04:04 2014 UTC (10 years, 1 month ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #65911 (scope resolution operator - strange behavior with $this)
--FILE--
<?php
class A {}

class B
{
	public function go()
	{
		$this->foo = 'bar';
		echo A::$this->foo; // should not output 'bar'
	}
}

$obj = new B();
$obj->go();
?>
--EXPECTF--
Fatal error: Access to undeclared static property: A::$this in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>