1--TEST--
2ldap_read() does not modify $attributes array
3--SKIPIF--
4<?php
5if (!extension_loaded('ldap')) die('skip ldap extension not available');
6?>
7--FILE--
8<?php
9$array = [123, 456, 789];
10try {
11  ldap_read(null, null, null, $array);
12} catch (TypeError $err) {}
13var_dump($array);
14?>
15--EXPECT--
16array(3) {
17  [0]=>
18  int(123)
19  [1]=>
20  int(456)
21  [2]=>
22  int(789)
23}
24