xref: /PHP-7.2/sapi/phpdbg/tests/info_002.phpt (revision 378a05f0)
1--TEST--
2info constants test
3--PHPDBG--
4b 10
5r
6i d
7q
8--EXPECTF--
9[Successful compilation of %s]
10prompt> [Breakpoint #0 added at %s:10]
11prompt> [Breakpoint #0 at %s:10, hits: 1]
12>00010: print B;
13 00011:
14prompt> [User-defined constants (2)]
15Address            Refs    Type      Constant
16%s 1       integer   A
17int (10)
18%s 1       integer   B
19int (100)
20prompt>
21--FILE--
22<?php
23
24const A = 10;
25const B = C::D * A;
26
27class C {
28	const D = 10;
29}
30
31print B;
32