that is what was actually fixed. The extensions folder don't need to be in the www root but directly under the project folder, just like with the nodejs extensions.
Sorry my mistake @Hyperbytes under PHP the custom extensions should really be under the webroot as this is also what is deployed to the remote server and you need the php files in it.