Making ldap_get_entries() binary safe?
| From: | Jani Taskinen | Date: | Sat, 09 Dec 2000 02:49:35 +0000 |
| Subject: | Making ldap_get_entries() binary safe? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40632@lists.php.net to get a copy of this message | ||
>ldap_get_entries() is not (yet) binary safe. But this might change in
>future versions.
[bug #8176]
I have already done this but I just started to think that should
it instead be a separate function? As it might have (a little)
performance decrease when it uses ldap_get_value_len() instead
of ldap_get_value().
Or should ldap_get_entries() just have an optional argument?
IMO all the current functions that have a binary safe equivalents
e.g. ldap_get_values() vs. ldap_get_values_len() should be changed to
aliases of the binary safe ones.
I did a little benchmarking but I didn't see any dramatic
differences in speed. 0.00429 seconds was the average for both.
--Jani