Y
Hacker News
new
|
ask
|
show
|
jobs
by
pieter
5093 days ago
Doesn't look like that from the bug report; there the locale is set first, then the class is defined and then looked up.
1 comments
bnr
5093 days 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"; }
link
i.e. this will print "bar":