|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21337 php crashes on ldap_sort
Submitted: 2003-01-02 08:31 UTC Modified: 2003-07-04 02:07 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: r dot hozee at maas-delta dot nl Assigned:
Status: No Feedback Package: LDAP related
PHP Version: 4.3.0 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-01-02 08:31 UTC] r dot hozee at maas-delta dot nl
Im using apache 2.0.43 as my webserver.
My ldap server is MS Exchange 5.5.

on ldap_sort my PHP Script Interpreter crashes and gives out this signature:
szAppName : php.exe     szAppVer :     szModName : php4ts.dll     
szModVer :     offset : 000ad517



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-02 14:06 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

Could you please provide the smallest possible test script that could be replicate the problem.
 [2003-01-03 01:52 UTC] r dot hozee at maas-delta dot nl
script used:

$ds = ldap_connect("mailservername") 

if ($ds) 
   $ldapbind = ldap_bind($ds, $ldaprdn, $ldappass);
   $sr=ldap_search($ds,"o=my org, c=NL", "cn=*");
   $info = ldap_get_entries($ds,$sr);
   //what follows is retrieval of entries

script works ok if i leave ldap_sort out

it also crashes when i replace
$sr = ldap_sort($ds,$sr,"cn");
or replacing cn with givenname.

I used the precompiled version of php 4.3 from
 [2003-01-15 15:59 UTC]
Does the same happen within command line, using PHP CLI ?

 [2003-01-17 02:04 UTC] r dot hozee at maas-delta dot nl
PHP crashed running from command line, using both CLI and CGI.
 [2003-07-04 02:07 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 11:01:30 2024 UTC