#42849 [Opn->Fbk]: Configuration File (php.ini) Path incorrect
| From: | jani@php.net | Date: | Fri, 05 Oct 2007 15:23:16 +0000 |
| Subject: | #42849 [Opn->Fbk]: Configuration File (php.ini) Path incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118220@lists.php.net to get a copy of this message | ||
ID: 42849
Updated by: jani@php.net
Reported By: inglis-php at yahoo dot com dot au
-Status: Open
+Status: Feedback
-Bug Type: *Configuration Issues
+Bug Type: *General Issues
Operating System: win xp pro
PHP Version: 5.2.4
New Comment:
Exactly what does phpinfo() have about php.ini? There are 2 places in
the output, paste both here..(in the very beginning of the output..)
Previous Comments:
------------------------------------------------------------------------
[2007-10-04 07:37:01] inglis-php at yahoo dot com dot au
Description:
------------
I have just used the .msi file to install php 5.2.4 All appeared to
work well. I installed to c:\PHP folder. Then wrote a small .php test
file (below) and tried it and the noticed that:
The phpinfo() function is reporting php.ini file as being in the
'C:\Windows' directory. It is actually located in 'C:\PHP' directory. I
have searched my c drive and there is only one copy of php.ini and it is
in the c:\PHP directory. I assume it finds the php.ini via the path
environment which now starts with c:\PHP.
Reproduce code:
---------------
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
<?php phpinfo(); ?>
</body>
</html>
Expected result:
----------------
C:\PHP
Actual result:
--------------
C:\Windows
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42849&edit=1