~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to Zend/tests/bug30140.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"