Bug #53177 [NEW]: MySQLi_Result::fetch_object sets values after calling constructor
| From: | thetoothpick at gmail dot com | Date: | Wed, 27 Oct 2010 05:13:20 +0000 |
| Subject: | Bug #53177 [NEW]: MySQLi_Result::fetch_object sets values after calling constructor | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155549@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 7
PHP version: 5.2.14
Package: MySQLi related
Bug Type: Bug
Bug description:MySQLi_Result::fetch_object sets values after calling constructor
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 bug report at http://bugs.php.net/bug.php?id=53177&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53177&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53177&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53177&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53177&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53177&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53177&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53177&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53177&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53177&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53177&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53177&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53177&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53177&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53177&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53177&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53177&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53177&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53177&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53177&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53177&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53177&r=mysqlcfg