Bug #66762 [PATCH]: Segfault in mysqli_stmt::bind_result() when link closed

From: Date: Tue, 25 Feb 2014 07:44:27 +0000
Subject: Bug #66762 [PATCH]: Segfault in mysqli_stmt::bind_result() when link closed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184404@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66762&edit=1 ID: 66762 Patch added by: remi@php.net Reported by: remi@php.net Summary: Segfault in mysqli_stmt::bind_result() when link closed Status: Assigned Type: Bug Package: MySQLi related Operating System: GNU/Linux PHP Version: 5.4.25 Assigned To: andrey Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: mysqli-protect-link.patch Revision: 1393314266 URL: https://bugs.php.net/patch-display.php?bug=66762&patch=mysqli-protect-link.patch&revision=1393314266 Previous Comments: ------------------------------------------------------------------------ [2014-02-25 07:32:47] remi@php.net The following patch has been added/updated: Patch Name: mysqli-protect-link.patch Revision: 1393313566 URL: https://bugs.php.net/patch-display.php?bug=66762&patch=mysqli-protect-link.patch&revision=1393313566 ------------------------------------------------------------------------ [2014-02-24 18:27:18] remi@php.net As the link is already protected by a internal refcount in mysqlnd, the new patch implement this refcount only when build with libmysqlclient. ------------------------------------------------------------------------ [2014-02-24 18:21:14] remi@php.net The following patch has been added/updated: Patch Name: mysqli-protect-link.patch Revision: 1393266074 URL: https://bugs.php.net/patch-display.php?bug=66762&patch=mysqli-protect-link.patch&revision=1393266074 ------------------------------------------------------------------------ [2014-02-24 17:35:31] remi@php.net @Andrey, can you please review this patch ? ------------------------------------------------------------------------ [2014-02-24 16:36:50] remi@php.net The attached patch seems to be a workaround. Each new statement increment link refcount, so the link will be really destroyed after all statements. ------------------------------------------------------------------------ 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=66762 -- Edit this bug report at https://bugs.php.net/bug.php?id=66762&edit=1

« previous php.bugs (#184404) next »