Bug #72151 [Com]: mysqli_fetch_object changed behaviour from 5.6.20

From: Date: Sat, 23 Jul 2016 13:48:31 +0000
Subject: Bug #72151 [Com]: mysqli_fetch_object changed behaviour from 5.6.20
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202526@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72151&edit=1

 ID:                 72151
 Comment by:         mauroasprea+php at gmail dot com
 Reported by:        nicola at tiphys dot com
 Summary:            mysqli_fetch_object changed behaviour from 5.6.20
 Status:             Closed
 Type:               Bug
 Package:            MySQLi related
 PHP Version:        5.6.21
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

What about implementing something like PDO::FETCH_PROPS_LATE but for MySQLi and pg?


Previous Comments:
------------------------------------------------------------------------
[2016-05-10 09:26:24] requinix@php.net

Related To: Bug #72184

------------------------------------------------------------------------
[2016-05-09 15:44:32] ab@php.net

Also, please check the upcoming RC this week and ping back in case of issue.

Thanks.

------------------------------------------------------------------------
[2016-05-09 15:43:45] ab@php.net

Thanks for the ping. These changes was reverted in the dev branch in
1cc536af5a9790288ef6638e3b167858d3b0cca1 and fc2a45b70a6675cad627cfe6341dc77d61952ba4. With this,
the patches to bug #71820 are reverted.

See also bug #50636 and bug #49521 for the historical reasons. The change didn't cause any
issues with the QA, thus it were released. The behavior is inconsistent, however it is documented
this way. Thus reverted to avoid beyond breakage.

Thanks.

------------------------------------------------------------------------
[2016-05-09 13:42:41] ondrej@php.net

This affects both 5.6.21 and 7.0.6 as well.

------------------------------------------------------------------------
[2016-05-08 08:00:47] neo22s at gmail dot com

In PHP.net documentation http://php.net/manual/en/mysqli-result.fetch-object.php

Says "Note that mysqli_fetch_object() sets the properties of the object before calling the
object constructor."

So yes this is a bug :(

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


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

    https://bugs.php.net/bug.php?id=72151


--
Edit this bug report at https://bugs.php.net/bug.php?id=72151&edit=1


Thread (9 messages)

« previous php.bugs (#202526) next »