|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 14:03:34 2021 UTC