ID: 26512 Updated by: [EMAIL PROTECTED] Reported By: peterjh at mennonot dot net -Status: Feedback +Status: Bogus Bug Type: LDAP related Operating System: Linux Redhat PHP Version: 4.3.2 New Comment:
There is a memory_limit and there is also stack limit. Neither of these are bugs. Previous Comments: ------------------------------------------------------------------------ [2003-12-04 03:25:14] petrjh at mennonot dot net Did upgrade to said version, with a slightly larger degree of success (32k, for example, consistently worked), but 35k and above continues to never work. Here's a snippet of code which I use to test: http://www.mennonot.net/~peterjh/test.php ------------------------------------------------------------------------ [2003-12-04 02:02:40] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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