ID:               37887
 Updated by:       [EMAIL PROTECTED]
 Reported By:      petrkuzel at eurofins dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Configuration Issues
 Operating System: Windows
 PHP Version:      5.1.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Put your php.ini to c:\windows and restart web-server.


Previous Comments:
------------------------------------------------------------------------

[2006-06-22 14:54:33] petrkuzel at eurofins dot com

Registry HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath works if it points
to folder (vs file as suggested by the name :-(). Again restart.

The remaining issue (for me) is what is SAPI default location and web
server location in case of IIS.

------------------------------------------------------------------------

[2006-06-22 14:35:10] petrkuzel at eurofins dot com

My partial conclusion. 

If phpinfo() states as used php.ini "c:\windows" it in fact does NOT
use any php.ini. 

When is uses php.ini from C:\windows it is reported as
"c:\windows\php.ini"


It would be nice if phpinfo() returned what locations were probed for
the php.ini.

------------------------------------------------------------------------

[2006-06-22 14:29:59] petrkuzel at eurofins dot com

OK it looks like PHP is written in restart whole OS style. After
restarting OS php.ini from C:\windows was picked. I do not undertand
why (there is one in php dir and one pointed by Windows registry key)
but at least I know where to put my php.ini. In spite of fact I hate
it, I can use system global.

Now I can get to point, Mantisbt.org.

------------------------------------------------------------------------

[2006-06-22 14:07:23] petrkuzel at eurofins dot com

I tried to set HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath in registry,
but it's also ignored (based on missing the header mark and phpinfo()
output). Still empty result. It's after IIS restart (from IIS console).

------------------------------------------------------------------------

[2006-06-22 13:20:16] petrkuzel at eurofins dot com

Description:
------------
I want to use mssql extension but I'm not able to make PHP use my
php.ini file that contains declaration.

5.1.4 is manually installed on Windows with IIS 5.1. 







Reproduce code:
---------------
<?php

  echo "INI = " . get_cfg_var("cfg_file_path") . "<br>"; 

  echo "Prepend = " . ini_get("auto_prepend_file") . "<br>";

  phpinfo();


  
?>

Expected result:
----------------
Instead of expected:

  INI = c:\app\php\
  Prepent = c:\app\php\marker.txt

Actual result:
--------------
Returns:

  INI = 
  Prepend = 
  <the info tables> reporting ini path as "c:\windows" (I put there one
with 'auto_prepend_file marker' but it's not picked up), extension_dir
as "c:\php5", consequently no extensions discovered.... 


------------------------------------------------------------------------


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

Reply via email to