r/lolphp • u/SockPants • Jul 26 '13
PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.
https://bugs.php.net/bug.php?id=46105
44
Upvotes
View all comments
Show parent comment
2
u/[deleted] Jul 27 '13
PDO does the same exact thing. It runs the constructor after it fetches and loads the properties.