I sent a request to ops today to update some php.ini directives, and found out that he merely appended them to the end of the file. My google search didn't really come up with any info on whether this is a problem or not to have duplicates in there and how they would be parsed. Obviously, it can cause confusion, but, I would have a stronger argument if I knew if this was acceptable or not.
Any input?
Thanks in advance...
The php. ini file contains all of the current PHP configuration settings: such as the execution time, memory limit, etc. This is also how PECL modules are enabled such as memcache, APC, etc. This file allows you to override the server's default configuration settings.
You can use the expose_php directive in a custom php. ini file to control whether or not PHP sends version information in the HTTP headers. Learn more here.
The last mentioned value takes precedence.
memory_limit = 32M
... # more directives
memory_limit = 128M
<EOF>
Makes the memory_limit
be 128M.
It is usually not a crisis if something is declared twice. The normal behaviour would then be to use the last value parsed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With