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--EXPECTF--
35C::a1: int(256)
36D::a1: int(256)
37C::a2: int(512)
38D::a2: int(512)
39C::a3: int(1024)
40D::a3: int(3072)
41C::a4: int(257)
42D::a4: int(257)
43C::a5: int(513)
44D::a5: int(513)
45C::a6: int(1025)
46D::a6: int(3073)
47