Edit report at http://bugs.php.net/bug.php?id=51328&edit=1

 ID:               51328
 Updated by:       paj...@php.net
 Reported by:      dmathieu at oetker dot fr
 Summary:          Configuration File (php.ini) Path incorrect
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          *General Issues
 Operating System: Windows 2008 SP2 with iis 7
 PHP Version:      5.3.2

 New Comment:

No, PATH has nothing to do with how PHP finds php.ini.



You can either use the PHPRC (see http://www.php.net/configuration) or
the -c argument in the command line (CLI or FastCGI) to specify another
location. Check the "Loaded configuration file" to see which php.ini is
actually loaded.



Secondly, the include_path or extension_dir are default paths, they are
used when the loaded php.ini does not define any.



The other path inside the configure line has nothing to do with your
setup but the options used to compile php.



Sorry, but I will bogus this report as well as it is clearly a
configuration problem.


Previous Comments:
------------------------------------------------------------------------
[2010-03-19 10:00:22] dmathieu at oetker dot fr

Description:
------------
I have just install php 5.3.2  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.



I see other errors on my phpinfo():



include_path .;C:\php5\pear .;C:\php5\pear 

it's wrong: c:\php is my only php folder



Configure Command  cscript /nologo configure.js
"--enable-snapshot-build" "--enable-debug-pack" "--disable-zts"
"--disable-isapi" "--disable-nsapi" "--without-mssql"
"--without-pdo-mssql" "--without-pi3web"
"--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
"--with-enchant=shared" "--enable-object-out-dir=../obj/"
"--enable-com-dotnet"  



I don't know why I have d:\ here, I don't have it.

Don't know too why it use oracle, I don't use it...





Test script:
---------------
<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/bug.php?id=51328&edit=1

Reply via email to