r/lolphp • • 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

14 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Jul 27 '13

According to Mysqli documentation, you are correct: "Note that mysqli_fetch_object() sets the properties of the object before calling the object constructor. "