Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pieter
13y ago
0 comments
Share
Doesn't look like that from the bug report; there the locale is set first, then the class is defined and then looked up.
0 comments
default
newest
oldest
bnr
13y ago
PHP registers classes (and functions) at parse time, not at execution time.
i.e. this will print "bar":
<?php echo foo(); function foo() { return "bar"; }
j
/
k
navigate · click thread line to collapse