From:             Alex_Diedler at gmx dot de
Operating system: Win2k SP4 German
PHP version:      4.3.4
PHP Bug Type:     *Configuration Issues
Bug description:  Ignore extension_dir in the php.ini

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.


-- 
Edit bug report at http://bugs.php.net/?id=27495&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27495&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27495&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27495&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27495&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27495&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27495&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27495&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27495&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27495&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27495&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27495&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27495&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27495&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27495&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27495&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27495&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27495&r=float

Reply via email to