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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 28 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC