Edit report at http://bugs.php.net/bug.php?id=49521&edit=1

 ID:               49521
 Updated by:       fel...@php.net
 Reported by:      waps at pisem dot net
 Summary:          PDO fetchObject sets values before calling constructor
-Status:           Re-Opened
+Status:           Closed
 Type:             Bug
 Package:          PDO related
 Operating System: Ubuntu 8.10 x64
 PHP Version:      5.2.10
 Assigned To:      pierrick

 New Comment:

Reverted in 5_2 branch.


Previous Comments:
------------------------------------------------------------------------
[2010-03-18 23:07:52] fel...@php.net

Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=296361
Log: Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before
calling constructor)

------------------------------------------------------------------------
[2010-03-18 21:44:10] da...@php.net

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

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

------------------------------------------------------------------------


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

Reply via email to