php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5964 ldap_first_attribute - internal memory location pointer needs & sign else fail
Submitted: 2000-08-04 15:03 UTC Modified: 2000-08-08 20:02 UTC
From: luis_garcia at candle dot com Assigned: sniper (profile)
Status: Closed Package: LDAP related
PHP Version: 4.0.1pl2 OS: Windows NT 4.0 SP5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: luis_garcia at candle dot com
New email:
PHP Version: OS:

 

 [2000-08-04 15:03 UTC] luis_garcia at candle dot com
Using downloaded pre-compiled win32 modules. 

In php.ini: allow_call_time_pass_reference = Off

The code below generates a warning. Removing the reference 
from $mem causes nothing to be returned.

// ... initialize memory location pointer
$mem = 0;

// ... get the first attribute
$attr = ldap_first_attribute($link, $entry, &$mem);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 16:28 UTC] luis_garcia at candle dot com
I have not looked at the source but I suspect that the problem may be that the ldap_first_attribute function declaration must be modified to require the relevant argument by reference. This probably also applies to the function ldap_next_attribute.
 [2000-08-04 19:17 UTC] sniper@php.net
Possible fix in CVS. Please try it out. 

--Jani

 [2000-08-08 20:02 UTC] sniper@php.net
Fixed in CVS. Nobody complained so this works. At least it does for me.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC