Incorrect php .so

This PR adds spec tests to #192 and closes #190.