We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
<?php /* We are assuming 3333 is not connectable */ $ldap = ldap_connect('ldap://127.0.0.1:3333'); $valid_dn = "cn=userA,something"; $valid_filter = ""; $ldaps_dict = [ "hello" => $ldap, "world" => $ldap, ]; try { var_dump(ldap_list($ldaps_dict, $valid_dn, $valid_filter)); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; }
Resulted in this output:
php: /home/girgias/Dev/PHP-8.2/Zend/zend_hash.c:2626: zend_hash_internal_pointer_reset_ex: Assertion `(&ht->nInternalPointer != pos || zend_gc_refcount(&(ht)->gc) == 1) || ((ht)->u.flags & (1<<6))' failed. Termsig=6
But I expected this output instead:
ValueError: ldap_list(): Argument #1 ($ldap) must be a list
PHP 8.2
No response
The text was updated successfully, but these errors were encountered:
ext/ldap: Fix phpGH-16101 (Segfaults in php_ldap_do_search() when LDA…
44f48dc
…Ps is not a list)
19bba83
Merge branch 'PHP-8.2' into PHP-8.3
0f2fe67
* PHP-8.2: ext/ldap: Fix GH-16101 (Segfaults in php_ldap_do_search() when LDAPs is not a list)
Merge branch 'PHP-8.3' into PHP-8.4
16b272d
* PHP-8.3: ext/ldap: Fix GH-16101 (Segfaults in php_ldap_do_search() when LDAPs is not a list)
Merge branch 'PHP-8.4'
8d1a791
* PHP-8.4: ext/ldap: Fix GH-16101 (Segfaults in php_ldap_do_search() when LDAPs is not a list)
d354c14
…Ps is not a list) Closes phpGH-16102
aa91f93
Girgias
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.2
Operating System
No response
The text was updated successfully, but these errors were encountered: