Re: [INTERNALS-WIN] Re: PHP OpenSSL v0.9.8 compatibility issue with OpenSSL v1.0

[email protected] (Jan Ehrhardt)
Newsgroups php.internals.win
Message-ID <[email protected]>
Jan Ehrhardt in php.internals.win (Thu, 13 Dec 2012 02:26:54 +0100):
>There is a exception in my builds at the moment: Curl on Windows builds
>flawlessly with_winssl, but for compilation with openssl you had to
>tweak urldata.h (a conflict between ssh and ssl). Curl 7.28.1 seems to
>build again with openssl (WITH_SSL=static WITH_SSH2=static
>ENABLE_WINSSL=no).

Compiling with OpenSSL 1.0.1c worked fine. First a faulty curl binary against the
latest Apache with the latest PHP's:

D:\>e:\utils\curl --version
curl 7.19.4 (i386-pc-win32) libcurl/7.19.4 OpenSSL/0.9.8j zlib/1.2.3 libidn/1.11
 libssh2/1.0
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IDN Largefile NTLM SSL SSPI libz

D:\>e:\utils\curl -k -I https://sessionportal.net/
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)

D:\>e:\utils\curl -k -I https://www.sessionportal.net/
HTTP/1.1 200 OK
Date: Thu, 13 Dec 2012 01:52:29 GMT
Server: Apache/2.4.3 (Win32) PHP/5.4.8 mod_fcgid/2.3.7 OpenSSL/1.0.1c
X-Powered-By: PHP/5.3.19
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Set-Cookie: SESS56f4d7a2c6fd20e978035de7f22d17b7=moogg9jltkd21hls3kibbh9t86; exp
ires=Sat, 05-Jan-2013 05:25:49 GMT; path=/; domain=.sessionportal.net
Last-Modified: Thu, 13 Dec 2012 01:52:29 GMT
Content-Type: text/html; charset=utf-8

Then the new binary I just compiled:

D:\>c:\php-sdk\win32build\bin\curl --version
curl 7.28.1 (i386-pc-win32) libcurl/7.28.1 OpenSSL/1.0.1c zlib/1.2.7 WinIDN
libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp
scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SPNEGO SSL SSPI libz

D:\>c:\php-sdk\win32build\bin\curl -k -I https://sessionportal.net/
HTTP/1.1 200 OK
Date: Thu, 13 Dec 2012 01:52:45 GMT
Server: Apache/2.4.3 (Win32) PHP/5.4.8 mod_fcgid/2.3.7 OpenSSL/1.0.1c
X-Powered-By: PHP/5.3.19
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Set-Cookie: SESS1243d8d5b628a98ca8d39ed0bbc29f3f=tv5lb4uu1qvl1k94p9if55t1f5; exp
ires=Sat, 05-Jan-2013 05:26:05 GMT; path=/; domain=.sessionportal.net
Last-Modified: Thu, 13 Dec 2012 01:52:45 GMT
Content-Type: text/html; charset=utf-8

D:\>c:\php-sdk\win32build\bin\curl -k -I https://www.sessionportal.net/
HTTP/1.1 200 OK
Date: Thu, 13 Dec 2012 01:52:54 GMT
Server: Apache/2.4.3 (Win32) PHP/5.4.8 mod_fcgid/2.3.7 OpenSSL/1.0.1c
X-Powered-By: PHP/5.3.19
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Set-Cookie: SESS56f4d7a2c6fd20e978035de7f22d17b7=ndlhq2ole3n5auql2u1aja39j0; exp
ires=Sat, 05-Jan-2013 05:26:14 GMT; path=/; domain=.sessionportal.net
Last-Modified: Thu, 13 Dec 2012 01:52:54 GMT
Content-Type: text/html; charset=utf-8

No problem at all. I did not test php_curl.dll, but it uses the same libs. New
full PHP builds will be in my dropbox in a moment.

Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.