Derick Rethans in php.qa (Tue, 5 Aug 2014 10:26:28 +0100 (BST)):
>On Sat, 2 Aug 2014, Jan Ehrhardt wrote:
>
>> I did not succeed to get the php_mongo.dll from
>> http://windows.php.net/downloads/pecl/releases/mongo/1.5.5/php_mongo-1.5.5-5.3-nts-vc9-x86.zip
>> to load without errors on my Windows 7 machine. If you enable the
>> extension in php.ini and run 'php -m' from the command line it was
>> complaining about a missing ordinal 4540 in LIBEAY32.dll.
>
>I've no idea what this even means :-)

Nasty Windows error when a program expects OpenSSL 1.0.1 te be there,
while in fact OpenSSL 0.9.8 is loaded. The strange thing: none of the
programs in the PHP 5.3.29RC1 release should expect OpenSSL 1.0.1. That
might indicate a problem in the PHP 5.3.29RC1 release.

Full error message: "The ordinal 4540 could not be located in the
dynamic link library LIBEAY32.dll". Google it...

>> So, I do not know if there is something wrong in the sasl/openssl combi
>> or if php_mongo.dll is doing something strange.
>
>You're not the first one to mention this, we actually have a bug report 
>for it too, albeit with less (read: no) useful information: 
>https://jira.mongodb.org/browse/PHP-1159

I saw that bug report, but it is not about the SSL issue. "an invalid
win32 application" usually pops up when you mix x64 with x86 binaries.

>> I resolved it by compiling php_mongo.dll --without-mongo-sasl. Maybe 
>> the Windows binaries at PECL should be compiled without cyrus-sasl as 
>> well. It does not seem to make any difference because SSL is not 
>> supported anymore in php_mongo.dll since 1.5. php_mongo.dll 1.4.5 
>> still supported SSL.
>
>1.5 supports SSL as well — not sure why you say it isn't? It's possible 
>of course we messed up :-) But it does seem strange that the libraries 

I guess you messed up. Take a look at the phpinfo.htm in these
zip-files.

https://phpdev.toolsforresearch.com/php-5.4.26-nts-Win32-VC9-x86.zip was
the last one with PHP Mongo 1.4.5: SSL Support  enabled.

https://phpdev.toolsforresearch.com/php-5.4.27-nts-Win32-VC9-x86.zip was
the first one with PHP Mongo 1.5.1. Compiled with --enable-mongo=shared
--with-mongo-sasl. Nevertheless: SSL Support    disabled !?

My 5.4.27 build was compiled with OpenSSL 1.0.1, so no complaints like
"The ordinal 4540 could not be located in the dynamic link library
LIBEAY32.dll". The missing ordinal only happens if I compile with
OpenSSL 0.9.8 or if I load the php_mongo.dll from
http://pecl.php.net/package/mongo/1.5.5/windows (in 5.3 or 5.4).

When I reboot my laptop as Windows XP SP3 or Windows XP SP2, there is no
error about a missing ordinal and php_mongo.dll loads just fine. But
even then SSL Support is disabled.

Jan

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to