2010/1/15 Philip Olson <[email protected]>:
>
> On Jan 14, 2010, at 1:52 PM, Matt Read wrote:
>
>> Are you on PHP 5.2.12? it is the latest release that introduces a new
>> bug that breaks Habari, and this is one of the symptoms. 0.6.3 will
> <snip>
>
> Curious, exactly which PHP bug is this?

We've yet to raise this with anyone, but we believe that PHP's revision 290786
should not have been committed (see bug 49521). This changed the behaviour of
PDO so that an object's constructor is called before the properties from the
database fields are set.

The behaviour requested was possible already with PDO_FETCH_PROPS_LATE, and
indeed this commit renders that constant useless.

Several PHP tickets about the same issue have been closed as bogus before this
one was committed. See 43717 and 37134, especially the closing comment on the
latter, "This is expected, to allow people to access the data from the query
within the [constructor] ..."

Part of the problem is that it doesn't seem well documented (if at all) that
that's the intended and correct behaviour.

http://svn.php.net/viewvc/?view=revision&revision=290786
http://bugs.php.net/bug.php?id=49521
http://bugs.php.net/bug.php?id=43717
http://bugs.php.net/bug.php?id=37134


-- 
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to