#26512 [NEW]: ldap_modify, ldap_add, ldap_mod_replace all hang with large arrays

From: Date: Wed, 03 Dec 2003 19:35:41 +0000
Subject: #26512 [NEW]: ldap_modify, ldap_add, ldap_mod_replace all hang with large arrays
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51633@lists.php.net to get a copy of this message
From: peterjh at mennonot dot net Operating system: Linux Redhat PHP version: 4.3.2 PHP Bug Type: Reproducible crash Bug description: ldap_modify, ldap_add, ldap_mod_replace all hang with large arrays 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 bug report at http://bugs.php.net/?id=26512&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26512&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26512&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26512&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26512&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26512&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26512&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26512&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26512&r=support Expected behavior: http://bugs.php.net/fix.php?id=26512&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26512&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26512&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26512&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26512&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26512&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26512&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26512&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26512&r=float

« previous php.bugs (#51633) next »