[MacPorts] #34228: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0
#34228: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: php openssl | Port: php5 --------------------------------+------------------------------------------- Since the last update, the PHP function [http://php.net/fsockopen fsockopen] doesn't work with ssl : {{{ <?php $connection = fsockopen('ssl://graph.facebook.com', 443); ?> }}} This leads to {{{ Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: SSL: crypto enabling timeout in ... Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: Failed to enable crypto in ... Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://graph.facebook.com:443 (Unknown error) in ... }}} -- Ticket URL: <https://trac.macports.org/ticket/34228> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Changes (by ryandesign@…): * keywords: php openssl => Comment: This should be reported to the developers of PHP. See extensive recent discussion on the MacPorts mailing lists for more. -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by macports.trippyd@…): It would be nice when you reference "extensive recent discussion on the MacPorts mailing lists" that you include a link to the archives, or possibly some kind of idea which of the 5 mailing lists contains the discussion, and when. I just searched dev, users, and tickets over the past 4 months and saw nothing that seemed appropriate, and certainly no obvious "extensive recent discussion". Basically, if you aren't going to be helpful, why respond? This is currently a showstopper for me. I would love to know how to get this fixed, it doesn't occur in my linux server. -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by pixilla@…): macports.trippyd: See #33715 What are you seeing? For me: {{{ $ openssl version OpenSSL 1.0.1c 10 May 2012 }}} {{{ <?php $connection = fsockopen('ssl://graph.facebook.com', 443); var_dump($connection); }}} produces {{{ resource(2) of type (stream) }}} -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by macports.trippyd@…): {{{ openssl version OpenSSL 1.0.1c 10 May 2012 }}} For your server, graph.facebook.com, I get your results, but for my mac: {{{ php -r "var_dump(fsockopen('ssl://pilot- payflowpro.verisign.com',443,\$errnum,\$errstr,5));" Warning: fsockopen(): SSL: crypto enabling timeout in Command line code on line 1 Call Stack: 0.0021 229456 1. {main}() Command line code:0 0.0030 230480 2. fsockopen() Command line code:1 Warning: fsockopen(): Failed to enable crypto in Command line code on line 1 Call Stack: 0.0021 229456 1. {main}() Command line code:0 0.0030 230480 2. fsockopen() Command line code:1 Warning: fsockopen(): unable to connect to ssl://pilot- payflowpro.verisign.com:443 (Unknown error) in Command line code on line 1 Call Stack: 0.0021 229456 1. {main}() Command line code:0 0.0030 230480 2. fsockopen() Command line code:1 }}} On my linux server: {{{ [dl@scsh01 ~]$ php -r "var_dump(fsockopen('ssl://pilot- payflowpro.verisign.com',443,\$errnum,\$errstr,5));" resource(4) of type (stream) }}} My mac and the linux server are both originating from the same network. -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by macports.trippyd@…): Oh yeah, linux servers openssl: {{{ [dl@scsh01 ~]$ openssl version OpenSSL 1.0.0-fips 29 Mar 2010 }}} -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by macports.trippyd@…): Additional information: Taking openssl to openssl @1.0.0h_0 fixes the issue (r90715 in the macports repository). -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… * cc: jwa@… (added) -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34228: php5: fsockopen don't work since php 5.3.10, with openssl 1.0.1b_0 --------------------------------+------------------------------------------- Reporter: clement@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: php5 --------------------------------+------------------------------------------- Comment(by ryandesign@…): Basically, this is not a MacPorts problem. It is a problem in the specific web server you are trying to connect to, and/or the version of openssl you are using, and/or the version of php you are using. Report problems to the people responsible for those components. -- Ticket URL: <https://trac.macports.org/ticket/34228#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts