Praveen Praveen - 8 months ago 36
PHP Question

php.ini getting updated without getting replaced

My product gets shipped with PHP binaries, dlls, php.ini in folder PHP.

Now I have updated the PHP binaries to recent version (5.3.6 from 4.33) in my installer package. So When the product is installed on existing installation (upgraded) the files under PHP directory gets replaced. But the config file php.ini gets updated by itself with new attributes instead of getting replaced totally.

How can I replace config file php.ini completely without just upgrading its contents?


Try simply deleting it. (backup!)

It's a matter of how you are running PHP but it worked once for me.

Or you try downloading a clean version (untested)

Using ini_restore could also be an option.