Annotation of embedaddon/php/ext/dom/tests/bug28817.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #28817 (properties in extended class)
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: class z extends domDocument{
! 9: /** variable can have name */
! 10: public $p_array;
! 11: public $p_variable;
! 12:
! 13: function __construct(){
! 14: $this->p_array[] = 'bonus';
! 15: $this->p_array[] = 'vir';
! 16: $this->p_array[] = 'semper';
! 17: $this->p_array[] = 'tiro';
! 18:
! 19: $this->p_variable = 'Cessante causa cessat effectus';
! 20: }
! 21: }
! 22:
! 23: $z=new z();
! 24: var_dump($z->p_array);
! 25: var_dump($z->p_variable);
! 26: ?>
! 27: --EXPECTF--
! 28: array(4) {
! 29: [0]=>
! 30: string(5) "bonus"
! 31: [1]=>
! 32: string(3) "vir"
! 33: [2]=>
! 34: string(6) "semper"
! 35: [3]=>
! 36: string(4) "tiro"
! 37: }
! 38: string(30) "Cessante causa cessat effectus"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>