|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53177 MySQLi_Result::fetch_object sets values after calling constructor
Submitted: 2010-10-27 07:13 UTC Modified: 2010-11-26 13:23 UTC
From: thetoothpick at gmail dot com Assigned:
Status: Wont fix Package: MySQLi related
PHP Version: 5.2.14 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
46 - 20 = ?
Subscribe to this entry?

 [2010-10-27 07:13 UTC] thetoothpick at gmail dot com
In PHP 5.2.14, mysqli_result::fetch_object sets properties after calling the 

In PHP 5.2.12, the properties were set before calling the constructor.  This 
behavior was removed in both the 5.2 and 5.3 branches by svn commit #293039, as a 
fix for Bug #50636.  However, in the comments for that bug, it was determined that 
the behavior should be documented, not removed.  The commit that fixed the "bug" 
was later reverted in the 5.3 branch by svn commit #294901, but not in the 5.2 

The documentation for mysqli_result::fetch_object also describes this behavior as 
a feature.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-26 13:23 UTC]
-Status: Open +Status: Wont fix
 [2010-11-26 13:23 UTC]
PHP 5.2 is in security fix only mode.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 20 03:03:35 2022 UTC