#21974 [Opn->Fbk]: ldap_add() Causes seg fault

From: Date: Fri, 31 Jan 2003 03:46:19 +0000
Subject: #21974 [Opn->Fbk]: ldap_add() Causes seg fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31724@lists.php.net to get a copy of this message
ID: 21974 Updated by: magnus@php.net Reported By: kris@lunadawn.net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Debian GNU/Linux PHP Version: 4.2.3 New Comment: Could you first try this snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz And post a backtrace: http://bugs.php.net/bugs-generating-backtrace.php Previous Comments: ------------------------------------------------------------------------ [2003-01-30 21:09:20] kris@lunadawn.net ldap_add causes php to crash. code is: $addResult = ldap_add($ldap, "uid=$username, ou=People, dc=UCBldap", $info); if ($addResult != 1) { $err = ldap_error($ldap); echo "$err<BR>"; ldap_close($ldap); return(1); } and $info is an array with this in it: dn: uid=test,ou=People,dc=UCBldap cn: test uid: test objectclass[0]: account objectclass[1]: posixAccount objectclass[2]: top loginshell: /bin/false userpassword: test homedirectory: /data/test gidnumber: 503 uidnumber: 509 the error in /var/log/apache/error_log is /var/log/apache/error.log:[Thu Jan 30 10:48:26 2003] [notice] child pid 31804 exit signal Segmentation fault (11) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21974&edit=1

« previous php.bugs (#31724) next »