I imagine that PHP wouldn't like having new stuff loaded via php.ini at startup. I don't know this to be true, but I don't find it in the docs, and it seems to violate the POLA.
You could set auto_prepend either in php.ini or httpd.conf (if using Apache) and have whatever value(s) you desire in the prepended file....