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

 [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: Fri Mar 29 13:01:29 2024 UTC