|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43892 PHP.INI file misplaced
Submitted: 2008-01-19 00:55 UTC Modified: 2008-08-22 18:29 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dima at desktopfay dot com Assigned:
Status: Not a bug Package: Windows Installer
PHP Version: 5.2.5 OS: Windows
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dima at desktopfay dot com
New email:
PHP Version: OS:


 [2008-01-19 00:55 UTC] dima at desktopfay dot com
MSI installer creates and modifies PHP.INI file in PHP folder (C:\Program Files\PHP by default);
However PHP.INI from *Windows* folder is actually used.

Reproduce code:
Try to enable MySQL extension using MSI installer.
Delete PHP.INI in Windows folder, which may already exist there (e.g. from v4.x installation).

Expected result:
MySQL functions should work.

Actual result:
The PHP.INI is successfully modified in PHP folder.
MySQL functions are still not defined.

You have to move PHP.INI from PHP folder to Windows folder by hand. Then everything begins to work.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-26 01:00 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 24 18:03:35 2022 UTC