I have the Pimple C extension installed and in my phpinfo() i can see that the Pimple extension is active.
I also have pimple/pimple in my composer.json and the php package is loaded.
As far as i see they dont collide as i dont get any errors, but how do i know that the extension is in use?
When i have the Pimple C extension installed, do i still need the php Pimple package?
Will the C extension silently override the php class?
Is it common behaviour that php will first check if a class is present in php itself and then fallback to a php implementation?
PHP will use the extension's one.
This is because autoloading will only happen if you are attempting to access a class which does not already exist. Extension functions and classes will exist after PHP's startup meaning before the code starts to run.
(answers from hek2mgl user)