Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php5/php-5.6.6/tests/lang/
Upload File :
Current File : //hdd/hdd21/main/php5/php-5.6.6/tests/lang/bug23922.phpt

--TEST--
Bug #23922 (scope doesn't properly propagate into internal functions)
--FILE--
<?php
  class foo
  {
    public $foo = 1;

    function as_string()
    { assert('$this->foo == 1'); }

    function as_expr()
    { assert($this->foo == 1); }
  }

  $foo = new foo();
  $foo->as_expr();
  $foo->as_string();
?>
--EXPECT--