From:             
Operating system: Windows 2008 SP2 with iis 7
PHP version:      5.3.2
Package:          *General Issues
Bug Type:         Bug
Bug description:Configuration File (php.ini) Path incorrect

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 bug report at http://bugs.php.net/bug.php?id=51328&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51328&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51328&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51328&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51328&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51328&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51328&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51328&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51328&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51328&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51328&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51328&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51328&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51328&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51328&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51328&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51328&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51328&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51328&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51328&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51328&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51328&r=mysqlcfg

Reply via email to