#26512 [Opn->Fbk]: ldap_modify, ldap_add, ldap_mod_replace all hang with large arrays
ID: 26512
Updated by: sniper@php.net
Reported By: peterjh at mennonot dot net
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: LDAP related
Operating System: Linux Redhat
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-12-03 14:35:41] peterjh at mennonot dot net
Description:
------------
ldap_modify, ldap_add, and ldap_mod_replace all hang when they attempt
to adjust an individual attribute with data roughly 31k characters or
greater. There is a threshold such that 30k and below works fine and
35k and above never works. Example:
$attrs = array();
$attrs['mnappparam'][0] = "tmpalkkllk...";
# strlen($attrs['mnappparam'][0]) is 32000
ldap_mod_replace($conn, $dn, $attrs);
# we hang, but if $attrs['mnappparam'][0] is 31000 or less, # we work.
It should be noted that cut-n-pasting (and modifying a little) and then
attempting to use ldap_modify (commandline), the entry works, no matter
how large. (Thus, definately a PHP bug.)
Reproduce code:
---------------
$attrs = array();
$attrs['mnappparam'][0] = "tmpalkkllk...";
# strlen($attrs['mnappparam'][0]) is 32000
ldap_mod_replace($conn, $dn, $attrs);
# we hang, but if $attrs['mnappparam'][0] is 31000 or less,
# we work.
Expected result:
----------------
It just hangs.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26512&edit=1
Thread (4 messages)