list_entry *le;
/* try to find if we already have this link in our persistent list */
- if (zend_hash_find(plist, hashed_details, hashed_details_length+1, (void **) &le)==FAILURE) { /* we don't */
+ if (zend_hash_find(&EG(persistent_list), hashed_details, hashed_details_length+1, (void **) &le)==FAILURE) { /* we don't */
list_entry new_le;
if (ORA(max_links)!=-1 && ORA(num_links)>=ORA(max_links)) {
/* hash it up */
new_le.type = le_pconn;
new_le.ptr = db_conn;
- if (zend_hash_update(plist, hashed_details, hashed_details_length+1, (void *) &new_le, sizeof(list_entry), NULL)==FAILURE) {
+ if (zend_hash_update(&EG(persistent_list), hashed_details, hashed_details_length+1, (void *) &new_le, sizeof(list_entry), NULL)==FAILURE) {
free(db_conn);
efree(hashed_details);
RETURN_FALSE;
#endif
) {
php_error(E_WARNING, "Oracle: Link to server lost, unable to reconnect",ora_error(&db_conn->lda));
- zend_hash_del(plist, hashed_details, hashed_details_length+1);
+ zend_hash_del(&EG(persistent_list), hashed_details, hashed_details_length+1);
efree(hashed_details);
RETURN_FALSE;
}
* if it doesn't, open a new mysql link, add it to the resource list,
* and add a pointer to it with hashed_details as the key.
*/
- if (zend_hash_find(list,hashed_details,hashed_details_length+1,(void **) &index_ptr)==SUCCESS) {
+ if (zend_hash_find(&EG(regular_list),hashed_details,hashed_details_length+1,(void **) &index_ptr)==SUCCESS) {
int type,link;
void *ptr;
efree(hashed_details);
return;
} else {
- zend_hash_del(list,hashed_details,hashed_details_length+1);
+ zend_hash_del(&EG(regular_list),hashed_details,hashed_details_length+1);
}
}
if (ORA(max_links)!=-1 && ORA(num_links)>=ORA(max_links)) {
/* add it to the hash */
new_index_ptr.ptr = (void *) return_value->value.lval;
new_index_ptr.type = le_index_ptr;
- if (zend_hash_update(list,hashed_details,hashed_details_length+1,(void *) &new_index_ptr, sizeof(list_entry), NULL)==FAILURE) {
+ if (zend_hash_update(&EG(regular_list),hashed_details,hashed_details_length+1,(void *) &new_index_ptr, sizeof(list_entry), NULL)==FAILURE) {
efree(hashed_details);
RETURN_FALSE;
}
RETURN_FALSE;
}
- if (!(cursor = ora_get_cursor(list,curs))){
+ if (!(cursor = ora_get_cursor(&EG(regular_list),curs))){
efree(query);
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
- cursor = ora_get_cursor(list, curs);
+ cursor = ora_get_cursor(&EG(regular_list), curs);
if (cursor == NULL) {
RETURN_FALSE;
}
if (zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
- if ((cursor = ora_get_cursor(list, arg)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), arg)) == NULL) {
RETURN_FALSE;
}
if (zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
- if ((cursor = ora_get_cursor(list, arg)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), arg)) == NULL) {
RETURN_FALSE;
}
if(zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
- if((cursor = ora_get_cursor(list, arg)) == NULL) {
+ if((cursor = ora_get_cursor(&EG(regular_list), arg)) == NULL) {
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
- if ((cursor = ora_get_cursor(list, arg)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), arg)) == NULL) {
RETURN_FALSE;
}
}
/* Find the cursor */
- if ((cursor = ora_get_cursor(list, curs)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
- if ((cursor = ora_get_cursor(list, curs)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
- if ((cursor = ora_get_cursor(list, curs)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
/* Find the cursor */
- if ((cursor = ora_get_cursor(list, curs)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
RETURN_FALSE;
}
WRONG_PARAM_COUNT;
}
- if ((cursor = ora_get_cursor(list, curs)) == NULL) {
+ if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
RETURN_FALSE;
}