By default, PHP builds shared libraries; however, it seems that when you use --enable-embed, you have to specify type, either static or shared. The documentation wasn't clear about whether static or shared was default in this situation. I would rebuild PHP with --enable-embed=shared and see what happens. Good luck!