--TEST-- Bug GH-16136: Memory leak in php_ldap_do_modify() when entry is not a proper dictionary --EXTENSIONS-- ldap --FILE-- '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; } ?> --EXPECTF-- Warning: ldap_add(): Unknown attribute in the data in %s on line %d bool(false)