xref: /php-src/ext/mysqli/tests/bug31141.phpt (revision b5a14e6c)
1--TEST--
2Bug #31141 (properties declared in the class extending MySQLi are not available)
3--EXTENSIONS--
4mysqli
5--FILE--
6<?php
7class Test extends mysqli
8{
9    public $test = array();
10
11    function foo()
12    {
13        $ar_test = array("foo", "bar");
14        $this->test = &$ar_test;
15    }
16}
17
18$my_test = new Test;
19$my_test->foo();
20var_dump($my_test->test);
21?>
22--EXPECTF--
23array(2) {
24  [0]=>
25  %s(3) "foo"
26  [1]=>
27  %s(3) "bar"
28}
29