diff options
author | Andi Gutmans <andi@php.net> | 2000-02-05 17:58:11 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-02-05 17:58:11 +0000 |
commit | 8c813dbb9640d0e724843b716e02bfcb280ea7ff (patch) | |
tree | b478fae628c758b87fd2b1648c30b777c3dec5c7 | |
parent | 39cb8fe0ac56d1fb5639b0bf6df59faab1cbccbb (diff) | |
download | php-git-8c813dbb9640d0e724843b716e02bfcb280ea7ff.tar.gz |
- Make Win32 compile again
-rw-r--r-- | ext/odbc/php_odbc.c | 15 | ||||
-rw-r--r-- | ext/xml/xml.c | 3 | ||||
-rw-r--r-- | tests/testfunc | 2 |
3 files changed, 8 insertions, 12 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index a8944fb06b..5764dff120 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -314,7 +314,6 @@ static void php_odbc_init_globals(php_odbc_globals *odbc_globals) PHP_MINIT_FUNCTION(odbc) { - ELS_FETCH(); ODBCLS_D; #ifdef SQLANY_BUG HDBC foobar; @@ -622,7 +621,7 @@ PHP_FUNCTION(odbc_close_all) { void *ptr; int type; - int i, nument = zend_hash_next_free_element(list); + int i, nument = zend_hash_next_free_element(&EG(regular_list)); for(i = 1; i < nument; i++) { ptr = zend_list_find(i, &type); @@ -1757,7 +1756,7 @@ try_and_get_another_connection: if (persistent) { list_entry *le; - if (zend_hash_find(plist, hashed_details, hashed_len + 1, (void **) &le) + if (zend_hash_find(&EG(persistent_list), hashed_details, hashed_len + 1, (void **) &le) == FAILURE) { /* the link is not in the persistent list */ list_entry new_le; @@ -1779,7 +1778,7 @@ try_and_get_another_connection: new_le.type = le_pconn; new_le.ptr = db_conn; - if (zend_hash_update(plist, hashed_details, hashed_len + 1, &new_le, + if (zend_hash_update(&EG(persistent_list), hashed_details, hashed_len + 1, &new_le, sizeof(list_entry), NULL) == FAILURE) { free(db_conn); efree(hashed_details); @@ -1809,7 +1808,7 @@ try_and_get_another_connection: d_name, sizeof(d_name), &len); if(ret != SQL_SUCCESS){ - zend_hash_del(plist, hashed_details, hashed_len + 1); + zend_hash_del(&EG(persistent_list), hashed_details, hashed_len + 1); SQLDisconnect(db_conn->hdbc); SQLFreeConnect(db_conn->hdbc); goto try_and_get_another_connection; @@ -1820,7 +1819,7 @@ try_and_get_another_connection: } else { /* non persistent */ list_entry *index_ptr, new_index_ptr; - if (zend_hash_find(list, hashed_details, hashed_len + 1, + if (zend_hash_find(&EG(regular_list), hashed_details, hashed_len + 1, (void **) &index_ptr) == SUCCESS) { int type, conn_id; void *ptr; @@ -1836,7 +1835,7 @@ try_and_get_another_connection: efree(hashed_details); return; } else { - zend_hash_del(list, hashed_details, hashed_len + 1); + zend_hash_del(&EG(regular_list), hashed_details, hashed_len + 1); } } if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { @@ -1852,7 +1851,7 @@ try_and_get_another_connection: ZEND_REGISTER_RESOURCE(return_value, db_conn, le_conn); new_index_ptr.ptr = (void *) return_value->value.lval; new_index_ptr.type = le_index_ptr; - if (zend_hash_update(list, hashed_details, hashed_len + 1, (void *) &new_index_ptr, + if (zend_hash_update(&EG(regular_list), hashed_details, hashed_len + 1, (void *) &new_index_ptr, sizeof(list_entry), NULL) == FAILURE) { efree(hashed_details); RETURN_FALSE; diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 6ca7dd9ee4..4ac1b5a83c 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -158,9 +158,6 @@ static void php_xml_init_globals(php_xml_globals *xml_globals) PHP_MINIT_FUNCTION(xml) { - - ELS_FETCH(); - le_xml_parser = register_list_destructors(xml_parser_dtor, NULL); #ifdef ZTS diff --git a/tests/testfunc b/tests/testfunc index d0e6d36743..ce789a7861 100644 --- a/tests/testfunc +++ b/tests/testfunc @@ -15,7 +15,7 @@ function bar() foo(); } -for ($i=0; $i<1000; $i++) { +for ($i=0; $i<10; $i++) { bar(); } |