Skip to content

Can not set LDAP_OPT_NETWORK_TIMEOUT on php 8.4 #23244

Description

@amorebietakoUdala

Description

The following code:

$ldap=ldap_connect("ldap://127.0.0.1");
var_dump(ldap_set_option($ldap,LDAP_OPT_NETWORK_TIMEOUT,3));
'

Resulted in this output:

bool(false)

But I expected this output instead:

bool(false)

LDAP_OPT_PROTOCOL_VERSION doesn't work either.

PHP Version

PHP 8.4.24 (cli) (built: Jul 30 2026 15:23:13) (NTS)
Copyright (c) The PHP Group
Built by Ubuntu
Zend Engine v4.4.24, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.24, Copyright (c), by Zend Technologies

Operating System

Ubuntu 24.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions