php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2025 Compile failure in module ldap
Submitted: 1999-08-10 16:43 UTC Modified: 1999-08-20 09:04 UTC
From: straub at i-netpartner dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (10/08/1999) OS: Linux 2.2.3 (DLD 6.01)
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: straub at i-netpartner dot de
New email:
PHP Version: OS:

 

 [1999-08-10 16:43 UTC] straub at i-netpartner dot de
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/var/httpd/include   -I/usr/include -I/usr/include/gd -I/usr/src/ldap/include -I/usr/local/include/mysql   -I/usr/include -I/home/sybase/include -I/usr/src/expat/include/xml -I/usr/src/zlib/include -I../.. -I../../libzend    -g -O2 -g -O2 -c ldap.c
ldap.c:70: `php3_ldap_close' undeclared here (not in a function)
ldap.c:70: initializer element for `ldap_functions[1].handler' is not constant
make: *** [ldap.o] Error 1     

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-10 17:10 UTC] straub at i-netpartner dot de
To fix the failure please insert

PHP_FUNCTION(ldap_close);

in the file "php3_ldap.h" at line 55. The file was incomplete !

 [1999-08-10 17:51 UTC] straub at i-netpartner dot de
Sorry but my last message was wrong.

I now saw that "ldap_close" was already an alias for "ldap_unbind". So 
forget my last message and do the following to fix the problem:


remove the line 70:
	- PHP_FE(ldap_close, 	NULL)

insert the following at line 96:
	+ /* alias for "ldap_close" for ldap_unbind */
	   PHP_FALIAS(ldap_close,	ldap_unbind,	NULL)

It looks like its running so.
 [1999-08-20 09:04 UTC] andrey at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 01:01:33 2025 UTC