php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26656 ldap_set_option() while LDAP is compiled.
Submitted: 2003-12-17 16:48 UTC Modified: 2003-12-18 04:00 UTC
From: herps at raqtweak dot com Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.3.4 OS: RedHat 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: herps at raqtweak dot com
New email:
PHP Version: OS:

 

 [2003-12-17 16:48 UTC] herps at raqtweak dot com
Description:
------------
For some reason I keep getting:

Fatal error: Call to undefined function: ldap_set_option()

However, my PHP is compiled with --with-ldap and it compiles just fine.
A PHP info also shows LDAP just fine...

However, this exact same script, same system, compiled with PHP 4.1.2 same configure options gives a GOOD result...

Can someone please advise?!!
I have installed:
openldap-1.2.9-6
openldap-devel-1.2.9-6




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-17 17:02 UTC] venaas@php.net
I don't remember for sure, but I think you need at least
OpenLDAP 2.0 for ldap_set_option() to be there. If you
don't use this function in your scripts, you shouldn't
worry too much, but in general I would suggest installing
more up to date LDAP libraries. OpenLDAP 1 is getting quite
old.
 [2003-12-18 03:29 UTC] sniper@php.net
Definately not PHP bug.

 [2003-12-18 04:00 UTC] herps at raqtweak dot com
sniper:

This is a professional, and therefor NOT a snide comment:
Your comments now, and in the past are NEVER useful. You ALWAYS *IMMEDIATELY* say "not PHP bug".

What is a BUG? Something that is not working while it should... LDAP 1 is an older version, and most of the times older versions ARE compatible... Sometimes though, they are not... However, I COULD NOT FIND THIS ANYWHERE ON THE SITE HERE!! So, imho, this IS indeed a bug, as LDAP is said to be working (does not say it does not) but it is not however... Get my point?

Again, I am not trying to offend you, but I do hope you understand my, and other people's visions and try to look into it a little more before you IMMEDIATELY post "not my fault"
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC