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 /* ldap_add(_ext)(), ldap_mod_replace(_ext)(), ldap_mod_add(_ext)(), and ldap_mod_del(_ext)() share an underlying C function */ /* We are assuming 3333 is not connectable */ $ldap = ldap_connect('ldap://127.0.0.1:3333'); $valid_dn = "cn=userA,something"; $not_dict_of_attributes = [ 'attribute1' => 'value', 'not_key_entry', 'attribute3' => [ 'value1', 'value2', ], ]; try { var_dump(ldap_add($ldap, $valid_dn, $not_dict_of_attributes)); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; }
Resulted in this output:
Warning: ldap_add(): Unknown attribute in the data in %s on line %d bool(false) + Memory leak
But I expected this output instead:
Warning: ldap_add(): Unknown attribute in the data in %s on line %d bool(false)
PHP 8.2
No response
The text was updated successfully, but these errors were encountered:
ext/ldap: Fix phpGH-16136 (Memory leak in php_ldap_do_modify())
3435d5a
79939fe
61d5a76
2126031
Merge branch 'PHP-8.2' into PHP-8.3
10b5d4b
* PHP-8.2: NEWS entries for LDAP bug fixes ext/ldap: Fix GH-16136 (Memory leak in php_ldap_do_modify()) ext/ldap: Fix GH-16132 (Freeing pointer not allocated by ZMM)
Merge branch 'PHP-8.3' into PHP-8.4
747860c
* PHP-8.3: NEWS entries for LDAP bug fixes ext/ldap: Fix GH-16136 (Memory leak in php_ldap_do_modify()) ext/ldap: Fix GH-16132 (Freeing pointer not allocated by ZMM)
Merge branch 'PHP-8.4'
a6d111f
* PHP-8.4: NEWS entries for LDAP bug fixes ext/ldap: Fix GH-16136 (Memory leak in php_ldap_do_modify()) ext/ldap: Fix GH-16132 (Freeing pointer not allocated by ZMM)
c269f18
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: