Edit report at http://bugs.php.net/bug.php?id=49521&edit=1
ID: 49521 Updated by: da...@php.net Reported by: waps at pisem dot net Summary: PDO fetchObject sets values before calling constructor -Status: Closed +Status: Re-Opened Type: Bug Package: PDO related Operating System: Ubuntu 8.10 x64 PHP Version: 5.2.10 Assigned To: pierrick New Comment: According to the ML [1], Johannes, Felipe and Derick all agreed that this fix should be reverted, and instead the current behavior (values then constructor) should be properly documented. The desired behavior can be accomplished using the PDO::FETCH_PROPS_LATE option since 5.2.0. This means commit #290786 must be reverted in 5_2. It was already reverted in 5_3. (Commit #294903 [2]) [1] http://marc.info/?l=php-internals&m=126451457205904&w=2 [2] http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/pdo/pdo_stmt.c? r1=293036&r2=294903 Previous Comments: ------------------------------------------------------------------------ [2010-02-12 00:19:11] s...@php.net Automatic comment from SVN on behalf of johannes Revision: http://svn.php.net/viewvc/?view=revision&revision=294942 Log: merge 290786: Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling constructor) ------------------------------------------------------------------------ [2010-02-11 22:14:06] s...@php.net Automatic comment from SVN on behalf of johannes Revision: http://svn.php.net/viewvc/?view=revision&revision=294903 Log: Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling constructor) ------------------------------------------------------------------------ [2009-11-15 16:23:41] fel...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Thanks for the patch. ------------------------------------------------------------------------ [2009-11-15 16:20:37] s...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=290786 Log: - Fixed bug #49521 (PDO fetchObject sets values before calling constructor) (patch by Pierrick) ------------------------------------------------------------------------ [2009-11-12 05:00:55] pierr...@php.net Patch available at: http://www.adoy.net/php/49521.PHP_5_2.patch http://www.adoy.net/php/49521.PHP_5_3.patch http://www.adoy.net/php/49521.PHP_6_0.patch ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=49521 -- Edit this bug report at http://bugs.php.net/bug.php?id=49521&edit=1