xref: /PHP-7.3/ext/mysqli/tests/bug31141.phpt (revision 636d1b08)
1--TEST--
2Bug #31141 (properties declared in the class extending MySQLi are not available)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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