php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44625 php.ini doesn't show changed variable value for extension_dir and include_path
Submitted: 2008-04-03 06:04 UTC Modified: 2009-06-27 09:36 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: anilb36 at hotmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.5 OS: Windows Vista Home Premium
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: anilb36 at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-04-03 06:04 UTC] anilb36 at hotmail dot com
Description:
------------
Sys Config : Windows Vista Home Premium / PHP 5.2.5 / Apache 2.2.8

The changed values in php.ini doesn't get reproduced thru phpinfo() even after saving the file to %WINDIR% with admin privs as suggested on some sites eg. extension_dir still shows c:\php5 although php installed in c:\php.
Is version 5.2.5 regression tested on the above env or is there some workaround available for above issue ?




Reproduce code:
---------------
settings in php.ini config

extension_dir = C:/php/ext/



O/P of phpinfo()

Directive	Local Value	Master Value
extension_dir	C:\php5	C:\php5
include_path	.;c:\php\pear	.;c:\php\pear
og_errors	Off	Off

Other changed values are also not taking effect at runtime like error logging being set to on to debug further.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-03 11:09 UTC] jani@php.net
Check in phpinfo() output _which_ php.ini file is actually loaded. This is no bug.
 [2008-04-03 13:37 UTC] anilb36 at hotmail dot com
There is no variable _which_php.ini in phpinfo o/p.Can you pls elaborate. Is this a hidden sys variable like _FILE_ that i need to echo.

Have you checked and are sure that there is no php.ini load issue on Env => Windows Vista Home Premium / PHP 5.2.5 / Apache 2.2.8 ?
 [2008-04-03 14:12 UTC] jani@php.net
For all users out there: phpinfo() has the information of actual used php.ini file, found in the very first block. "Loaded configuration file", below the "Configuration File (php.ini) Path".
 [2008-04-03 14:24 UTC] anilb36 at hotmail dot com
Here is the relevant phpinfo() o/p

Server API 	                        Apache 2.0 Handler
Virtual Directory Support 	        enabled
Configuration File (php.ini) Path 	C:\Windows
Loaded Configuration File 	        C:\php\php.ini

It shows the correct values in here but doesn't load the values that
are in this file and ext dir still shows c:\php5 instead of c:\php\ext.Can you let me know where this c:\php5 is being picked up from ? That is the whole issue.I have also emailed you the local config and o/p if it makes sense.
 [2008-09-30 11:38 UTC] pajoye@php.net
I will check that again.
 [2008-11-02 13:37 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2008-11-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-03-02 16:37 UTC] pajoye@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-03-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-06-19 22:47 UTC] spamadd at aon dot at
Issue reproduced with 

Windows Vista HP version: 6.0.6001
PHP: 5.2.10 
Apache 2.2.11

phpinfo() shows ./ for extension_dir.
The php.ini path is set correct and shown in phpinfo().
php.exe -i shows all paths correct.

It is not possible to load extensions based on this installation.
Could you recommend a workaround?
 [2009-06-19 22:56 UTC] pajoye@php.net
I can't reproduce it. Have you installed other php (like with zend)? Some of them alters the registry as well.
 [2009-06-20 14:19 UTC] spamadd at aon dot at
No, did not install any other php.
I unzipped the binaries for win32 copied the dlls and added the php dirs to the PATH variable. I load the php module in apache and that's it. PHP seems to ignore my php.ini.
Registry shows a .php3 entry in HKLM/Software/classes.

Any debug or workaround hints?
 [2009-06-20 15:54 UTC] spamadd at aon dot at
Strange! 
I moved the php.ini into the /php/ directory and changed the PhPIni dir in the http.conf. 
I retested and the error was still there.

After that I processed phpinfo() via the commandline. 
There the extension_dir was correct.
Then I processed it via the webserver and there I saw the correct extension_dir.

It looked like processing phpinfo() via the command line has solved the issue.This is certainly a bug I guess!

Thanks for the help anyway!
 [2009-06-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-06-27 09:36 UTC] pajoye@php.net
Not a bug, config issue (and usage).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC