php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thetoothpick at gmail dot com
New email:
PHP Version: OS:

 

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

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 
branch.

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-26 13:23 UTC] johannes@php.net
-Status: Open +Status: Wont fix
 [2010-11-26 13:23 UTC] johannes@php.net
PHP 5.2 is in security fix only mode.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 02:02:52 2024 UTC