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

    1: --TEST--
    2: Bug #65911 (scope resolution operator - strange behavior with $this)
    3: --FILE--
    4: <?php
    5: class A {}
    6: 
    7: class B
    8: {
    9: 	public function go()
   10: 	{
   11: 		$this->foo = 'bar';
   12: 		echo A::$this->foo; // should not output 'bar'
   13: 	}
   14: }
   15: 
   16: $obj = new B();
   17: $obj->go();
   18: ?>
   19: --EXPECTF--
   20: Fatal error: Access to undeclared static property: A::$this in %s on line %d

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