#21337 [Opn->Fbk]: php crashes on ldap_sort
| From: | sniper@php.net | Date: | Wed, 15 Jan 2003 21:59:51 +0000 |
| Subject: | #21337 [Opn->Fbk]: php crashes on ldap_sort | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30183@lists.php.net to get a copy of this message | ||
ID: 21337
Updated by: sniper@php.net
Reported By: r.hozee@maas-delta.nl
-Status: Open
+Status: Feedback
Bug Type: LDAP related
Operating System: Windows XP
PHP Version: 4.3.0
New Comment:
Does the same happen within command line, using PHP CLI ?
Previous Comments:
------------------------------------------------------------------------
[2003-01-03 01:52:57] r.hozee@maas-delta.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=*");
ldap_sort($ds,$sr,"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
ldap_sort($ds,$sr,"cn");
with
$sr = ldap_sort($ds,$sr,"cn");
or replacing cn with givenname.
I used the precompiled version of php 4.3 from php.net
------------------------------------------------------------------------
[2003-01-02 14:06:44] iliaa@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
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-02 08:31:55] r.hozee@maas-delta.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 : 4.3.0.0 szModName : php4ts.dll
szModVer : 4.3.0.0 offset : 000ad517
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21337&edit=1