php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27495 Ignore extension_dir in the php.ini
Submitted: 2004-03-04 09:39 UTC Modified: 2004-03-05 03:12 UTC
From: Alex_Diedler at gmx dot de Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.4 OS: Win2k SP4 German
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: Alex_Diedler at gmx dot de
New email:
PHP Version: OS:

 

 [2004-03-04 09:39 UTC] Alex_Diedler at gmx dot de
Description:
------------
Following problem:
The installation of Apache 1.3.29 and PHP 4.3.4 finished without problems. Now I enable all extension in the php_ini and add the path to the System_environment. I copy the 2 dll files to the system32 directory.
But the function ldap_connect() doesn?t work. 
So I am looking to phpinfo(). There is the path extension_dir shown to c:\php4 but in my php.ini there is the path setting to C:\php\extensions. I tried with or without "" oder \ / nothing changes.
Why the phpinfo() show me the wrong path and doesn?t work?
Many restarts of the server takes no effect on it.

The Browser throws exception:
Fatal error: Call to undefined function: ldap_connect() in c:\programme\apache group\apache\htdocs\php_tut\ldap_test2.php on line 15

on Line 15 is:
$ldapConn = ldap_connect($ldapServer);




Reproduce code:
---------------
My php.ini: located at C:\winnt\system32
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\php\extensions

Expected result:
----------------
I expect the correct directory and that the apache find the extension modules and it should work fine.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-04 10:23 UTC] edink@php.net
You probably forgot to put php.ini in c:\winnt (or whatever is your windows directory).

You can see on the top of phpinfo page which php.ini was read.
 [2004-03-05 02:04 UTC] Alex_Diedler at gmx dot de
Hello,
Yes that?s it! 
But where can I change the location of the php.ini? Should it ever be at c:\winnt? 
Thread can be closed.
Thanks for your help!

Greetings
Alex D.
 [2004-03-05 03:12 UTC] derick@php.net
Leave status at "bogus" as this is not a bug but a user error.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 12:01:31 2025 UTC