cvs: php-src /ext/mysqli mysqli_embedded.c

From: Date: Wed, 12 Jul 2006 07:00:48 +0000
Subject: cvs: php-src /ext/mysqli mysqli_embedded.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-39187@lists.php.net to get a copy of this message
hholzgra Wed Jul 12 07:00:48 2006 UTC Modified files: /php-src/ext/mysqli mysqli_embedded.c Log: fixed C&P errors in groups handling, activated groups feature http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli_embedded.c?r1=1.5&r2=1.6&diff_format=u Index: php-src/ext/mysqli/mysqli_embedded.c diff -u php-src/ext/mysqli/mysqli_embedded.c:1.5 php-src/ext/mysqli/mysqli_embedded.c:1.6 --- php-src/ext/mysqli/mysqli_embedded.c:1.5 Sun Jan 1 13:09:52 2006 +++ php-src/ext/mysqli/mysqli_embedded.c Wed Jul 12 07:00:48 2006 @@ -75,14 +75,14 @@ /* get groups */ if ((zend_hash_num_elements(HASH_OF(*grps)))) { groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(HASH_OF(*grps)) + 1, 0); - arguments[0] = NULL; + groups[0] = NULL; - zend_hash_internal_pointer_reset_ex(HASH_OF(*args), &pos); + zend_hash_internal_pointer_reset_ex(HASH_OF(*grps), &pos); - for (index = 0;; zend_hash_move_forward_ex(HASH_OF(*args), &pos)) { + for (index = 0;; zend_hash_move_forward_ex(HASH_OF(*grps), &pos)) { zval ** item; - if (zend_hash_get_current_data_ex(HASH_OF(*args), (void **) &item, &pos) == FAILURE) { + if (zend_hash_get_current_data_ex(HASH_OF(*grps), (void **) &item, &pos) == FAILURE) { break; } @@ -96,7 +96,7 @@ groups[0] = NULL; } - rc = mysql_server_init(argc, arguments, NULL); + rc = mysql_server_init(argc, arguments, groups); if (argc) { efree(arguments);

« previous php.cvs (#39187) next »