summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_embedded.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2006-07-12 07:01:04 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2006-07-12 07:01:04 +0000
commite796974f6feddac0e4ce57354c8d44ccd77dc0ae (patch)
tree65f999913ec6a0fa19c1d09de412fb28a211b236 /ext/mysqli/mysqli_embedded.c
parentaca64603465b65c212b577c7e991675441a1c03a (diff)
downloadphp-git-e796974f6feddac0e4ce57354c8d44ccd77dc0ae.tar.gz
fixed C&P errors in groups handling, activated groups feature
Diffstat (limited to 'ext/mysqli/mysqli_embedded.c')
-rw-r--r--ext/mysqli/mysqli_embedded.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mysqli/mysqli_embedded.c b/ext/mysqli/mysqli_embedded.c
index 38d4b46c18..71f55d676f 100644
--- a/ext/mysqli/mysqli_embedded.c
+++ b/ext/mysqli/mysqli_embedded.c
@@ -75,14 +75,14 @@ PHP_FUNCTION(mysqli_embedded_server_start)
/* 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 @@ PHP_FUNCTION(mysqli_embedded_server_start)
groups[0] = NULL;
}
- rc = mysql_server_init(argc, arguments, NULL);
+ rc = mysql_server_init(argc, arguments, groups);
if (argc) {
efree(arguments);