diff options
Diffstat (limited to 'ext/ldap/ldap.c')
| -rw-r--r-- | ext/ldap/ldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 6ad3a93600..c64b13bab5 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -1975,7 +1975,8 @@ PHP_FUNCTION(ldap_sort) RETURN_FALSE; } - if ((le = zend_hash_index_find_ptr(&EG(regular_list), Z_RES_HANDLE_P(result))) == NULL || le->type != le_result) { + le = Z_RES_P(result); + if (le->type != le_result) { php_error_docref(NULL, E_WARNING, "Supplied resource is not a valid ldap result resource"); RETURN_FALSE; } |
