summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_const_in_global_scope.phpt
blob: 31f7eae6d79a6bf6f933d0bd53a97aed2d22abf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Test use of magic constants in the global scope
--FILE--
<?php

var_dump(
    __LINE__,
    __FILE__,
    __DIR__,
    __FUNCTION__,
    __METHOD__,
    __CLASS__,
    __TRAIT__,
    __NAMESPACE__
);

?>
--EXPECTF--
int(4)
string(%d) "%s"
string(%d) "%s"
string(0) ""
string(0) ""
string(0) ""
string(0) ""
string(0) ""