phpinfo() displays Wrong version openssl in OS X
This is because the version of PHP that came with your Mac is compiled with the version of OpenSSL that came with it, too. By you compiling OpenSSL, all you did was compile a separate version.

If you compiled PHP and told it to use the newer version, that would work.