got a little problem over here. I've compiled example Zephir plugin on my machine, which works fine on the workstation, but when I move it eg. to production server, I receive this weird php error:
PHP Startup: Unable to load dynamic library '/mod/utils.so' - /mod/utils.so: invalid ELF header in Unknown on line 0
The path is fine because when the file is not present in dir php throws file not found error.
Google told me nothing. Seems like no one ever encountered this kind of problem. Any ideas?
"invalid ELF header" means your self compiled shared library is not compatible to the system on your production server. Here, it would be great to know the specifics / differences between your workstation and your production environment. This is because your lib has been compiled on your workstation for your workstation. Compiling that on the production server is a baaaaad idea, you should try to get a precompiled library and install it there, or in case you can't find one, compile the library on a identical environment like your production machine and install it afterwards on the production machine. Hope that helps.