1--TEST--
2Test ReflectionProperty::getModifiers() usage.
3--FILE--
4<?php
5
6class C {
7    public $a1;
8    protected $a2;
9    private $a3;
10    static public $a4;
11    static protected $a5;
12    static private $a6;
13}
14
15class D extends C {
16    public $a1;
17    protected $a2;
18    private $a3;
19    static public $a4;
20    static protected $a5;
21    static private $a6;
22}
23
24for ($i = 1;$i <= 6;$i++) {
25    $rp = new ReflectionProperty("C", "a$i");
26    echo "C::a$i: ";
27    var_dump($rp->getModifiers());
28    $rp = new ReflectionProperty("D", "a$i");
29    echo "D::a$i: ";
30    var_dump($rp->getModifiers());
31}
32
33?>
34--EXPECT--
35C::a1: int(1)
36D::a1: int(1)
37C::a2: int(2)
38D::a2: int(2)
39C::a3: int(4)
40D::a3: int(4)
41C::a4: int(17)
42D::a4: int(17)
43C::a5: int(18)
44D::a5: int(18)
45C::a6: int(20)
46D::a6: int(20)
47