Annotation of embedaddon/php/ext/mysqli/tests/bug31141.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #31141 (properties declared in the class extending MySQLi are not available)
        !             3: --SKIPIF--
        !             4: <?php require_once('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: class 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();
        !            20: var_dump($my_test->test);
        !            21: ?>
        !            22: --EXPECTF--
        !            23: array(2) {
        !            24:   [0]=>
        !            25:   %s(3) "foo"
        !            26:   [1]=>
        !            27:   %s(3) "bar"
        !            28: }

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