]> granicus.if.org Git - php/commit
Fix a problem with cursors, which did not happen with unbuffered PS for
authorAndrey Hristov <andrey@php.net>
Thu, 28 May 2009 16:35:16 +0000 (16:35 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 28 May 2009 16:35:16 +0000 (16:35 +0000)
commit09b56ed2a5142b7a303622309ff275cac5177d05
tree2b26b3f7c317c81fde7376f7ddf5f536d402f6e7
parentf9fb575cd7fbb13dfc380301ee4632905e809976
Fix a problem with cursors, which did not happen with unbuffered PS for
some reason. Double free of the data, which led to valgrind warnigns.
The fix actually optimizes the code in this cases because the old code
used copy_ctor while the new one skips it because it is not needed.
Transferring data ownership and nulling works best, for PS where we
always copy the string from the result set, unlike the text protocol.
ext/mysqlnd/mysqlnd_palloc.c
ext/mysqlnd/mysqlnd_ps.c
ext/mysqlnd/mysqlnd_ps_codec.c
ext/mysqlnd/mysqlnd_result.c