Doc #64419 [Com]: php.ini should have coment on path to ext directory.
| From: | burek021 at gmail dot com | Date: | Sat, 27 Apr 2013 18:59:16 +0000 |
| Subject: | Doc #64419 [Com]: php.ini should have coment on path to ext directory. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9765@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64419&edit=1
ID: 64419
Comment by: burek021 at gmail dot com
Reported by: vladimir dot camaj at gmail dot com
Summary: php.ini should have coment on path to ext directory.
Status: Open
Type: Documentation Problem
Package: Windows Installer
Operating System: Windows
PHP Version: 5.4.12
Block user comment: N
Private report: N
New Comment:
I just installed php (with the latest apache 2.4 from apachelounge) on Windows
XP and Windows 7. In both php.ini-development and php.ini-production there are
commented out lines that say:
; extension_dir = "ext"
I copied php.ini-production to php.ini. Now, when I enable two extensions, by
uncommenting the lines:
extension=php_mysql.dll
extension=php_mysqli.dll
I should be able (after the restart of apache) to see mysql/mysqli support in
phpinfo(), but I don't. After commenting out the following line, I'm able to see
those 2 extensions available in phpinfo():
extension_dir = "ext"
That's why I think there is a bug on a Window OS, which prevents php from
correctly determining its extension_dir and I could suggest that default value
for that variable (if commented by default), on Windows, should be "ext".
Previous Comments:
------------------------------------------------------------------------
[2013-03-15 10:52:32] jhannwong at gmail dot com
This is needed for a portable WAMP on a thumbdrive.
This should be classified as a bug, since the php.ini indicates that relative paths are to be used.
------------------------------------------------------------------------
[2013-03-13 13:25:03] vladimir dot camaj at gmail dot com
Some Windowses doesn´t works correctly with relative path. There should be some coment to note
this.
------------------------------------------------------------------------
[2013-03-13 13:21:35] vladimir dot camaj at gmail dot com
Description:
------------
php.ini line 729:
; On windows:
extension_dir = "ext"
Test script:
---------------
php.ini line 729(here should be note, that (some???)Windows may needs absolute path for loading
extensions):
; On windows:
extension_dir = "ext"
Expected result:
----------------
Windows(min. XP) doesn´t work with relative paths correctly. There should be the absolute path to
work right("C:\PHP54\ext"). I seems that Win take the path from system path variable
first. So it would be fine, if there will be some coment for this unexpected behavior. For example:
"Windows may needs absolute path for loading extensions".
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64419&edit=1