Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pieter
13y ago
0 comments
Save
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
1 comments · 1 top-level
top
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