php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48515 PHP.ini not overriding master variables
Submitted: 2009-06-09 23:00 UTC Modified: 2009-06-10 19:25 UTC
From: jackmcleod at infocode007 dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.9 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2009-06-09 23:00 UTC] jackmcleod at infocode007 dot com
Description:
------------
In php 5.2.3 everything was working fine, then i noticed magic quotes gpc being on again and i did some testing with the php.ini file to find out it was being completely ignored.
Server API 	Apache 2.0 Handler 

Changing the values in the master file changes the values.


Reproduce code:
---------------
memory_limit = 128M (then restart the server)

<?php phpinfo(); ?>

Expected result:
----------------
When calling phpinfo();:

memory_limit	128M	32M

Actual result:
--------------
When calling phpinfo();:

memory_limit	32M	32M

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-10 12:41 UTC] jani@php.net
Update to 5.2.9 and check that the correct ini is loaded. There is no 
bug here.
 [2009-06-10 19:25 UTC] jackmcleod at infocode007 dot com
I am using 5.2.9 - see version number. 5.2.3 was the version i was using when it was working. The issue also shows up on another PC. So i tried to find info on how to give then instruction to the server to take in charge another php.ini file thinking maybe it's a problem in my setup seeing you cannot reproduce, but came up with nothing. 
Perhaps you would know a resource site for apache php setups on windows or a specific instruction/environment variable.
 [2021-08-11 09:23 UTC] julien dot romagnoli at gmail dot com
So i found my issue 

in my php.ini into the section "Quick Reference"
i were set error_reporting: E_ALL & ~E_NOTICE & ~E_DEPRECATED
and i have one more error_reporting into "Error handling and logging" section, which were causing this issue

but strangly i didn't get any error message into the log of fpm
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 14:01:28 2025 UTC