php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42513 extensions_dir syntax bug
Submitted: 2007-09-01 18:28 UTC Modified: 2007-09-03 09:19 UTC
From: mshockle at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.4 OS: windows xp
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: mshockle at gmail dot com
New email:
PHP Version: OS:

 

 [2007-09-01 18:28 UTC] mshockle at gmail dot com
Description:
------------
on windows xp running apache 2.2.4, with php 5.2.4.4 (and earlier versions IIRC) if extension_dir is 

extension_dir = "E:\php\ext"
it cannot load any modules located therein, this is also true for ./ and other relative paths. However

extension_dir = E:\php\ext

works fine, and similarly with all other circumstances.

this occurred with php_mysql, php_mysqli, php_mbstring, and any other module I installed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-03 08:12 UTC] jani@php.net
What SAPI are you using? (I can't reproduce this..)
 [2007-09-03 08:14 UTC] mshockle at gmail dot com
php5apache2_2.dll
 [2007-09-03 08:18 UTC] jani@php.net
And you're saying that when you include double slashes (") around the path it doesn't work? I find that hard to believe since it doesn't really matter if you have them or not as long as your path doesn't contain spaces..
 [2007-09-03 08:22 UTC] mshockle at gmail dot com
Meh, just thought i'd pass it along. I used the zip package of the win32 build for this version, and on apache 2.2 i encountered a problem with ANY directory including the PWD until I removed any quotes, then apache magically understood where it all went.
 [2007-09-03 09:11 UTC] jani@php.net
So not even "./" works? Can you check with CLI? I tried this and it works fine:

php.ini:

extension_dir = "./ext"
extension = php_pdo.dll

I just unpacked the zip and run the php.exe in the same dir with the php.ini in the same dir:

php -m

And it lists PDO, no errors.

 [2007-09-03 09:16 UTC] mshockle at gmail dot com
Hmm, it has been suggested to me that the issue might have been with the editor used to edit the *.ini (notepad++); I did the CLI just for kicks, and it works good too. Sorry for wasting time, disregard as bogus I suppose.
 [2007-09-03 09:19 UTC] jani@php.net
As requested. (I used notepad btw. :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 11:01:33 2025 UTC