If I recompile PHP to add a shared extension, will the actual PHP binary change? Or can I just copy the resultant library for the new extension? For example, suppose I last compiled php 5.2.3 with the following configuration:
./configure --with-apxs --with-gd --with-mysqli
And now, I want to add xml and expat support, but I don't want to risk breaking the PHP installation that already exists. If I simply recompile from the same source tree, with the new extensions as shared libraries:
./configure --with-apxs --with-gd --with-mysqli --with-libxml=shared --with-expat=shared
Is it safe to simply copy the resulting .so files for libxml and expat into the existing installation, along with the necessary entries in php.ini?