File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug30140.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month 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

    1: --TEST--
    2: Bug #30140 (Problem with array in static properties)
    3: --FILE--
    4: <?php
    5: class A {
    6: 	public static $test1 = true;
    7: 	public static $test2 = array();
    8: 	public static $test3 = "str";
    9: }
   10: 
   11: class B extends A {
   12: }
   13: 
   14: A::$test1 = "x";
   15: A::$test2 = "y";
   16: A::$test3 = "z";
   17: var_dump(A::$test1);
   18: var_dump(A::$test2);
   19: var_dump(A::$test3);
   20: var_dump(B::$test1);
   21: var_dump(B::$test2);
   22: var_dump(B::$test3);
   23: ?>
   24: --EXPECT--
   25: string(1) "x"
   26: string(1) "y"
   27: string(1) "z"
   28: string(1) "x"
   29: string(1) "y"
   30: string(1) "z"

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