File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / mysqli / tests / bug31141.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:58 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Bug #31141 (properties declared in the class extending MySQLi are not available)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class Test extends mysqli
{
	public $test = array();

	function foo()
	{
		$ar_test = array("foo", "bar");
		$this->test = &$ar_test;
	}
}

$my_test = new Test;
$my_test->foo();
var_dump($my_test->test);
?>
--EXPECTF--
array(2) {
  [0]=>
  %s(3) "foo"
  [1]=>
  %s(3) "bar"
}

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