php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21974 ldap_add() Causes seg fault
Submitted: 2003-01-30 21:09 UTC Modified: 2003-02-13 19:47 UTC
From: kris at lunadawn dot net Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.2.3 OS: Debian GNU/Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kris at lunadawn dot net
New email:
PHP Version: OS:

 

 [2003-01-30 21:09 UTC] kris at lunadawn dot 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-30 21:46 UTC] magnus@php.net
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 
 
 [2003-02-13 19:47 UTC] sniper@php.net
This was fixed in PHP 4.3.0.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 15:01:36 2025 UTC