--TEST-- ldap_(g|s)et_option() with non existing option --EXTENSIONS-- ldap --FILE-- getMessage(), PHP_EOL; } try { var_dump(ldap_get_option($ldap, 999999, $value)); } catch (Throwable $e) { echo $e::class, ": ", $e->getMessage(), PHP_EOL; } ?> --EXPECT-- ValueError: ldap_set_option(): Argument #2 ($option) must be a valid LDAP option ValueError: ldap_get_option(): Argument #2 ($option) must be a valid LDAP option