ID: 26016 Updated by: [EMAIL PROTECTED] Reported By: hill at bluecarrots dot com -Status: No Feedback +Status: Wont fix Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3 New Comment:
--disable-ipv6 when you configure. Previous Comments: ------------------------------------------------------------------------ [2004-07-18 01:38:15] wmueller at email dot com well there must be more than just forgotten ssl support. i have php compiled with: '--with-openssl' and still if i do a fsockopen i end up with no socket AND a success message. if this is not a bug what else would be one? i do: $fp = fsockopen("http://www.webseite.com", 80, $errno, $errstr, 4); if(!$fp){ // this will echo the errorno: 0 and success message :p echo "$errstr ($errno)<br />\n"; }else{ // stuff } Script output: Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/htdocs/.... on line ... Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.website.com:80 in /www/htdocs/.... on line ... Success (0) System is a Suse Linux / PHP 4.3.1 same script works on windows and no i do not upgrade to php5 just for the taste of it :p so me too would vote for a fix! any comments welcome. thanks for doing php(4) :-) ------------------------------------------------------------------------ [2004-06-16 16:39:23] [EMAIL PROTECTED] It's a "Won't fix" for PHP4 because it requires a *significant* rewrite of the socket transport layer. As any responsible developer knows, you don't make massive changes to a stable branch of code, that's how you introduce bugs. You don't want bugs do you? It's also a "Won't fix" because it does work in PHP4 if you simply follow the instructions: For Linux: Compile OpenSSL support in staticly rather than as a shared module. ./configure --with-openssl rather than ./configure --with-openssl=shared For Windows: Use the alternate php4libts.dll provided at http://ftp.proventum.net/pub/php/win32/misc/openssl/ Creating a drama out of being "forced" to move to PHP5 to get ssl sockets to work seems...well... childish is a good word isn't it? ------------------------------------------------------------------------ [2004-06-16 15:30:47] webmaster at zaedno dot de Somehow find it childish - will not fix it? What does this mean - I should migrate to PHP5 only because you find this not important enough. Pls reconsider this - I saw an hour ago that there are other fixes poping up in snaps.php. ------------------------------------------------------------------------ [2004-05-04 23:03:40] [EMAIL PROTECTED] Err, I obviously was reading the odd-one-out comment. Restoring status. ------------------------------------------------------------------------ [2004-05-04 23:01:10] [EMAIL PROTECTED] You must build the openssl statically to use this feature. There is a static version for windows, provided by Emini, who are also responsible for our win32 snapshots: http://ftp.emini.dk/pub/php/win32/openssl/ We won't fix this in PHP 4, but it has already been fixed in PHP 5 (you can load openssl dynamically in PHP 5). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26016 -- Edit this bug report at http://bugs.php.net/?id=26016&edit=1