ID:               44238
 Updated by:       [EMAIL PROTECTED]
 Reported By:      BenBE at omorphia dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Debian Etch
 PHP Version:      5.2.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2008-02-24 22:55:32] BenBE at omorphia dot de

Description:
------------
When updating PHP5 to the latest version (5.2.5-2 or newer), using the
LDAP extension produces a crash, causing the script to abort.

Version 5.2.4-2 was latest version, that didn't crash that way. Also
tried with 5.2.5-2, but same problem.

Reproduce code:
---------------
function get_ldap_name($unix)
{
        $ds = ldap_connect("ldap.example.com");
        $ldap_arr = get_ldap_info($unix, $ds);
        if ((is_array($ldap_arr)) && array_key_exists(0, $ldap_arr)) {
                $data = $ldap_arr[0]['cn'][0];
                ldap_close($ds);
                return $data;
        }
        ldap_close($ds);
        return false;
}


Expected result:
----------------
Script returns the full name of the user specified

Actual result:
--------------
tail -f /var/log/apache2/error.log

apache2: getattr.c:80: ldap_first_attribute: Assertion `len != 0'
failed.
[Sun Feb 24 23:23:09 2008] [notice] child pid 1578 exit signal Aborted
(6)
apache2: getattr.c:80: ldap_first_attribute: Assertion `len != 0'
failed.
[Sun Feb 24 23:23:14 2008] [notice] child pid 1580 exit signal Aborted
(6)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44238&edit=1

Reply via email to