php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64419 php.ini should have comment on path to ext directory.
Submitted: 2013-03-13 13:21 UTC Modified: 2015-06-21 04:22 UTC
Votes:3
Avg. Score:3.7 ± 1.9
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: vladimir dot camaj at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *Configuration Issues
PHP Version: 5.4.12 OS: Windows only
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-03-13 13:21 UTC] 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".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-13 13:25 UTC] 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:25 UTC] vladimir dot camaj at gmail dot com
-Summary: php.ini should have coment on paths to ext directoryi. +Summary: php.ini should have coment on path to ext directory.
 [2013-03-15 10:52 UTC] 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-04-27 18:59 UTC] burek021 at gmail dot com
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".
 [2015-06-09 19:01 UTC] cmb@php.net
-Summary: php.ini should have coment on path to ext directory. +Summary: php.ini should have comment on path to ext directory. -Status: Open +Status: Feedback -Package: Windows Installer +Package: *Configuration Issues -Operating System: Windows +Operating System: Windows only -Assigned To: +Assigned To: cmb
 [2015-06-09 19:01 UTC] cmb@php.net
I'm not aware of any problems with relative extension_dir paths on
recent PHP versions under supported Windows versions. Anybody
else? Otherwise there would be no need for additional
docs/comments.

@burek021: this is a separate issue. Please create a new ticket as
feature request.
 [2015-06-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC