|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-25 08:50 UTC] jani@php.net
[2008-03-04 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 02:00:01 2025 UTC |
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)