#21974 [NEW]: ldap_add() Causes seg fault
| From: | kris at lunadawn dot net | Date: | Fri, 31 Jan 2003 03:09:20 +0000 |
| Subject: | #21974 [NEW]: ldap_add() Causes seg fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31723@lists.php.net to get a copy of this message | ||
From: kris@lunadawn.net
Operating system: Debian GNU/Linux
PHP version: 4.2.3
PHP Bug Type: Reproducible crash
Bug description: ldap_add() Causes seg fault
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 bug report at http://bugs.php.net/?id=21974&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21974&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21974&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21974&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21974&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21974&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21974&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21974&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21974&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21974&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21974&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21974&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21974&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21974&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21974&r=gnused