mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
Pointer size fix
This commit is contained in:
parent
7fac56c593
commit
95b0fc58f7
@ -963,12 +963,14 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||
* and add a pointer to it with hashed_details as the key.
|
||||
*/
|
||||
if ( (zend_hash_find(&EG(regular_list), hashed_details, hashed_details_length + 1, (void *) &index_ptr) == SUCCESS) ) {
|
||||
int type, xlink;
|
||||
int type;
|
||||
long xlink;
|
||||
void *ptr;
|
||||
|
||||
if (Z_TYPE_P(index_ptr) != le_index_ptr) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
xlink = (int) index_ptr->ptr;
|
||||
xlink = (long) index_ptr->ptr;
|
||||
ptr = zend_list_find(xlink, &type); /* check if the xlink is still there */
|
||||
if (ptr && (type == le_link || type == le_plink)) {
|
||||
zend_list_addref(xlink);
|
||||
|
Loading…
Reference in New Issue
Block a user