#21337 [Opn->Fbk]: php crashes on ldap_sort
| From: | iliaa@php.net | Date: | Mon, 30 Jun 2003 02:40:12 +0000 |
| Subject: | #21337 [Opn->Fbk]: php crashes on ldap_sort | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42797@lists.php.net to get a copy of this message | ||
ID: 21337
Updated by: iliaa@php.net
Reported By: r dot hozee at maas-delta dot nl
-Status: Open
+Status: Feedback
Bug Type: LDAP related
Operating System: Windows XP
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 02:04:28] r dot hozee at maas-delta dot nl
PHP crashed running from command line, using both CLI and CGI.
------------------------------------------------------------------------
[2003-01-15 15:59:51] sniper@php.net
Does the same happen within command line, using PHP CLI ?
------------------------------------------------------------------------
[2003-01-03 01:52:57] 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=*");
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 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 : 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