Shouldn't php.ini entries overwrite defaults and become the
master value?
That is what happens currently: php.ini entries are applied
using zend_alter_ini_entry(), and the default value is stored
in orig_value. On the next request shutdown,
zend_deactivate() calls
register_ini_entries(), which is the service function that modules use to
register their entries, doesn't use alter_ini_entry(). It checks the
configuration hash (=php.ini) for a default value. If it exists, it uses
it as the default value (it doesn't use alter_ini_entry()), if it doesn't -