[php-src] Issue #23244: Can not set LDAP_OPT_NETWORK_TIMEOUT on php 8.4
[email protected] (amorebietakoUdala)
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <a4nz4jj3GtxM27QxiCHmkcFr3KXgosBrQWa6qWSZU0M@main.internal.php.net> |
Issue: https://github.com/php/php-src/issues/23244
Author: amorebietakoUdala
### Description
The following code:
```php8.4 -r '
$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
```plain
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