Edit report at http://bugs.php.net/bug.php?id=53177&edit=1
ID: 53177 Updated by: johan...@php.net Reported by: thetoothpick at gmail dot com Summary: MySQLi_Result::fetch_object sets values after calling constructor -Status: Open +Status: Wont fix Type: Bug Package: MySQLi related Operating System: Windows 7 PHP Version: 5.2.14 Block user comment: N Private report: N New Comment: PHP 5.2 is in security fix only mode. Previous Comments: ------------------------------------------------------------------------ [2010-10-27 07:13:19] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53177&edit=1