--- /dev/null
+--TEST--
+Testing visibility of methods
+--FILE--
+<?php
+
+class d {
+ private function test2() {
+ print "Bar\n";
+ }
+}
+
+abstract class a extends d {
+ public function test() {
+ $this->test2();
+ }
+}
+
+abstract class b extends a {
+}
+
+class c extends b {
+ public function __construct() {
+ $this->test();
+ }
+}
+
+new c;
+
+?>
+--EXPECTF--
+Fatal error: Call to private method d::test2() from context 'a' in %s on line %d
--- /dev/null
+--TEST--
+Trying use object of type stdClass as array
+--FILE--
+<?php
+
+$a[0] = new stdclass;
+$a[0][0] = new stdclass;
+
+?>
+--EXPECT--
+Fatal error: Cannot use object of type stdClass as array in %s on line %d
--- /dev/null
+--TEST--
+Creating recursive array on foreach using same variable
+--FILE--
+<?php
+
+error_reporting(E_ALL);
+
+foreach (($a = array('a' => array('a' => &$a))) as $a) {
+ var_dump($a);
+}
+
+?>
+--EXPECT--
+array(1) {
+ ["a"]=>
+ &array(1) {
+ ["a"]=>
+ &array(1) {
+ ["a"]=>
+ *RECURSION*
+ }
+ }
+}
+--UEXPECT--
+array(1) {
+ [u"a"]=>
+ &array(1) {
+ [u"a"]=>
+ &array(1) {
+ [u"a"]=>
+ *RECURSION*
+ }
+ }
+}
--- /dev/null
+--TEST--
+Testing interface constants with inheritance
+--FILE--
+<?php
+
+interface a {
+ const b = 2;
+}
+
+interface b extends a {
+ const c = self::b;
+}
+
+var_dump(b::c, a::b);
+
+?>
+--EXPECT--
+int(2)
+int(2)
--- /dev/null
+--TEST--
+"Nested" list()
+--FILE--
+<?php
+
+list($a, list($b)) = array(new stdclass, array(new stdclass));
+var_dump($a, $b);
+
+?>
+--EXPECT--
+object(stdClass)#1 (0) {
+}
+object(stdClass)#2 (0) {
+}
--- /dev/null
+--TEST--
+Testing full-reference on list()
+--FILE--
+<?php
+
+error_reporting(E_ALL);
+
+$a = new stdclass;
+$b =& $a;
+
+list($a, list($b)) = array($a, array($b));
+var_dump($a, $b, $a === $b);
+
+?>
+--EXPECT--
+object(stdClass)#1 (0) {
+}
+object(stdClass)#1 (0) {
+}
+bool(true)
--- /dev/null
+--TEST--
+Testing references of dynamic properties
+--FILE--
+<?php
+
+error_reporting(E_ALL);
+
+$foo = array(new stdclass, new stdclass);
+
+$foo[1]->a = &$foo[0]->a;
+$foo[0]->a = 2;
+
+$x = $foo[1]->a;
+$x = 'foo';
+
+var_dump($foo, $x);
+
+?>
+--EXPECT--
+array(2) {
+ [0]=>
+ object(stdClass)#1 (1) {
+ ["a"]=>
+ &int(2)
+ }
+ [1]=>
+ object(stdClass)#2 (1) {
+ ["a"]=>
+ &int(2)
+ }
+}
+string(3) "foo"
+--UEXPECT--
+array(2) {
+ [0]=>
+ object(stdClass)#1 (1) {
+ [u"a"]=>
+ &int(2)
+ }
+ [1]=>
+ object(stdClass)#2 (1) {
+ [u"a"]=>
+ &int(2)
+ }
+}
+unicode(3) "foo"