List:Commits« Previous MessageNext Message »
From:ahristov Date:September 24 2007 3:08pm
Subject:PHP mysqlnd svn commit: r1057 - trunk/php6/ext/mysqli
View as plain text  
Author: ahristov
Date: 2007-09-24 15:08:05 +0200 (Mon, 24 Sep 2007)
New Revision: 1057

Modified:
   trunk/php6/ext/mysqli/mysqli_nonapi.c
Log:
Fix a valgrind problem


Modified: trunk/php6/ext/mysqli/mysqli_nonapi.c
===================================================================
--- trunk/php6/ext/mysqli/mysqli_nonapi.c	2007-09-20 16:02:01 UTC (rev 1056)
+++ trunk/php6/ext/mysqli/mysqli_nonapi.c	2007-09-24 13:08:05 UTC (rev 1057)
@@ -132,13 +132,13 @@
 																				 NULL, &idx, FALSE, &pos)) {
 								break;
 							}
+							mysql->mysql = *free_mysql;
 							plist->free_links.pDestructor = NULL; /* Don't call pDestructor now */
 							if (SUCCESS != zend_hash_index_del(&plist->free_links, idx)) {
 								plist->used_links.pDestructor = pDestructor;  /* Restore the destructor */
 								break;
 							}
 							plist->used_links.pDestructor = pDestructor;  /* Restore the destructor */
-							mysql->mysql = *free_mysql;
 							MyG(num_inactive_persistent)--;
 							MyG(num_active_persistent)++;
 

Thread
PHP mysqlnd svn commit: r1057 - trunk/php6/ext/mysqliahristov24 Sep