MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:ahristov Date:June 22 2007 11:55am
Subject:PHP mysqlnd svn commit: r447 - trunk/php6/ext/mysqli
View as plain text  
Author: ahristov
Date: 2007-06-22 13:55:07 +0200 (Fri, 22 Jun 2007)
New Revision: 447

Modified:
   trunk/php6/ext/mysqli/mysqli.c
   trunk/php6/ext/mysqli/mysqli_api.c
   trunk/php6/ext/mysqli/mysqli_nonapi.c
   trunk/php6/ext/mysqli/php_mysqli.h
Log:
Separate namespaces


Modified: trunk/php6/ext/mysqli/mysqli.c
===================================================================
--- trunk/php6/ext/mysqli/mysqli.c	2007-06-22 11:54:50 UTC (rev 446)
+++ trunk/php6/ext/mysqli/mysqli.c	2007-06-22 11:55:07 UTC (rev 447)
@@ -55,8 +55,8 @@
 zend_class_entry *mysqli_exception_class_entry;
 
 #ifdef HAVE_MYSQLND
-MYSQLND_ZVAL_PCACHE *mysqlnd_zval_cache;
-MYSQLND_QCACHE		*mysqlnd_qcache;
+MYSQLND_ZVAL_PCACHE *mysqli_mysqlnd_zval_cache;
+MYSQLND_QCACHE		*mysqli_mysqlnd_qcache;
 #endif
 
 
@@ -555,8 +555,8 @@
 
 #ifdef HAVE_MYSQLND
 	mysqlnd_library_init();
-	mysqlnd_zval_cache = mysqlnd_palloc_init_cache(MyG(cache_size));
-	mysqlnd_qcache = mysqlnd_qcache_init_cache();
+	mysqli_mysqlnd_zval_cache = mysqlnd_palloc_init_cache(MyG(cache_size));
+	mysqli_mysqlnd_qcache = mysqlnd_qcache_init_cache();
 #endif
 
 	memcpy(&mysqli_object_handlers, zend_get_std_object_handlers(),
sizeof(zend_object_handlers));
@@ -742,8 +742,8 @@
 	zend_hash_destroy(&mysqli_link_properties);
 	zend_hash_destroy(&classes);
 #ifdef HAVE_MYSQLND
-	mysqlnd_palloc_free_cache(mysqlnd_zval_cache);
-	mysqlnd_qcache_free_cache_reference(&mysqlnd_qcache);
+	mysqlnd_palloc_free_cache(mysqli_mysqlnd_zval_cache);
+	mysqlnd_qcache_free_cache_reference(&mysqli_mysqlnd_qcache);
 	mysqlnd_library_end();
 #endif
 	UNREGISTER_INI_ENTRIES();
@@ -758,7 +758,7 @@
 	MyG(error_msg) = NULL;
 	MyG(error_no) = 0;
 #ifdef HAVE_MYSQLND
-	MyG(mysqlnd_thd_zval_cache) = mysqlnd_palloc_rinit(mysqlnd_zval_cache);
+	MyG(mysqlnd_thd_zval_cache) = mysqlnd_palloc_rinit(mysqli_mysqlnd_zval_cache);
 #endif
 
 	return SUCCESS;
@@ -828,11 +828,11 @@
 		mysqlnd_get_client_stats(&values);
 		mysqli_minfo_print_hash(&values);
 		zval_dtor(&values);
-		php_info_print_table_header(2, "Persistent cache", mysqlnd_zval_cache?
"enabled":"disabled");
+		php_info_print_table_header(2, "Persistent cache", mysqli_mysqlnd_zval_cache?
"enabled":"disabled");
 		
-		if (mysqlnd_zval_cache) {
+		if (mysqli_mysqlnd_zval_cache) {
 			/* Now report cache status */
-			mysqlnd_palloc_stats(mysqlnd_zval_cache, &values);
+			mysqlnd_palloc_stats(mysqli_mysqlnd_zval_cache, &values);
 			mysqli_minfo_print_hash(&values);
 			zval_dtor(&values);
 		}

Modified: trunk/php6/ext/mysqli/mysqli_api.c
===================================================================
--- trunk/php6/ext/mysqli/mysqli_api.c	2007-06-22 11:54:50 UTC (rev 446)
+++ trunk/php6/ext/mysqli/mysqli_api.c	2007-06-22 11:55:07 UTC (rev 447)
@@ -637,19 +637,13 @@
 {
 	MY_MYSQL 	*mysql;
 	zval  		*mysql_link;
-	ulong		rc;
 
 	if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
&mysql_link, mysqli_link_class_entry) == FAILURE) {
 		return;
 	}
 	MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link",
MYSQLI_STATUS_VALID);
 
-	rc = mysql_dump_debug_info(mysql->mysql);
-
-	if (rc) {
-		RETURN_FALSE;
-	}
-	RETURN_TRUE;	
+	RETURN_BOOL(!mysql_dump_debug_info(mysql->mysql))
 }
 /* }}} */
 

Modified: trunk/php6/ext/mysqli/mysqli_nonapi.c
===================================================================
--- trunk/php6/ext/mysqli/mysqli_nonapi.c	2007-06-22 11:54:50 UTC (rev 446)
+++ trunk/php6/ext/mysqli/mysqli_nonapi.c	2007-06-22 11:55:07 UTC (rev 447)
@@ -320,7 +320,7 @@
 	if (ZEND_NUM_ARGS()) {
 		WRONG_PARAM_COUNT;
 	}
-	mysqlnd_palloc_stats(mysqlnd_zval_cache, return_value);
+	mysqlnd_palloc_stats(mysqli_mysqlnd_zval_cache, return_value);
 }
 /* }}} */
 

Modified: trunk/php6/ext/mysqli/php_mysqli.h
===================================================================
--- trunk/php6/ext/mysqli/php_mysqli.h	2007-06-22 11:54:50 UTC (rev 446)
+++ trunk/php6/ext/mysqli/php_mysqli.h	2007-06-22 11:55:07 UTC (rev 447)
@@ -183,8 +183,8 @@
 extern mysqli_property_entry mysqli_warning_property_entries[];
 
 #ifdef HAVE_MYSQLND
-extern MYSQLND_ZVAL_PCACHE	*mysqlnd_zval_cache;
-extern MYSQLND_QCACHE		*mysqlnd_qcache;
+extern MYSQLND_ZVAL_PCACHE	*mysqli_mysqlnd_zval_cache;
+extern MYSQLND_QCACHE		*mysqli_mysqlnd_qcache;
 #endif
 
 extern void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flag,
int into_object);

Thread
PHP mysqlnd svn commit: r447 - trunk/php6/ext/mysqliahristov22 Jun