Bug #80937 [NEW]: Bug on PHP: PHP.INI not loading on windows 10
From: gilperon at gmail dot com
Operating system: WINDOWS 10 + PHP 8
PHP version: 8.0.3
Package: *General Issues
Bug Type: Bug
Bug description:Bug on PHP: PHP.INI not loading on windows 10
Description:
------------
I installed PHP 8 from https://windows.php.net/download/ (VS16 x64
Thread Safe) and also Apache (VS16 64 bits). I changed httpd.conf and
added the lines below at the bottom of it:
LoadFile "Z:/servidor/PHP/php8ts.dll"
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .html .html
LoadModule php_module "Z:/servidor/PHP/php8apache2_4.dll"
<IfModule php8_module>
PHPIniDir "Z:/servidor/PHP"
</IfModule>
I renamed php-development.ini to php.ini so I can customize it later.
Then I started Apache. PHP works fine BUT php.ini file is never loaded.
No matter what I try to do, php.ini is always not loaded.
phpinfo() shows:
Configuration File (php.ini) Path no value
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
Also php_ini_loaded_file() returns false.
I work with PHP for over a decade and I already installed it at least a
hundred times and a few times I had problems making PHP work, and this
time it's happening again. Is it a bug on Windows?
Expected result:
----------------
Php.ini file should be loaded
Actual result:
--------------
Php.ini file is not being loaded.
--
Edit bug report at https://bugs.php.net/bug.php?id=80937&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80937&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80937&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80937&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80937&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80937&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80937&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80937&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80937&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80937&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80937&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80937&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80937&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80937&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80937&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80937&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80937&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80937&r=mysqlcfg
Thread (5 messages)
- gilperon at gmail dot com