]> granicus.if.org Git - php/commit
Fixed bug #71820 pg_fetch_object bind parameters before call constructor
authorAnatol Belski <ab@php.net>
Thu, 17 Mar 2016 11:39:31 +0000 (12:39 +0100)
committerAnatol Belski <ab@php.net>
Thu, 17 Mar 2016 11:41:55 +0000 (12:41 +0100)
commitb4eedd128ba9f61be08a50c94afd72837d7cf70b
tree5781b60e54438c633a65b7edfb5b7b2f6f95fc2e
parentdae086040ecdefcd616c6592679f87f03dc62e00
Fixed bug #71820 pg_fetch_object bind parameters before call constructor

If we want to fetch into an object of a custom class that implemens
__set handler, the corstructor has to be called first. The data
passed to the constructor can be possibly required in __set handler.
ext/mysqli/mysqli.c
ext/mysqli/tests/bug71820.phpt [new file with mode: 0644]
ext/pgsql/pgsql.c
ext/pgsql/tests/bug71820.phpt [new file with mode: 0644]