#26016 [Com]: Warning: fsockopen(): Bug
ID: 26016 Comment by: wmueller at email dot com Reported By: hill at bluecarrots dot com Status: No Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3 New Comment: 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) :-) Previous Comments: [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). [2004-05-04 21:57:10] scott at marinar dot com The same is seen here with php 4.3.6 freshly compiled on Debian / Linux. Configure command is ./configure --enable-bcmath --with-openssl=/usr/local/openssl --with-mysql --with-apxs=/usr/bin/apxs --prefix=/usr/local This bug persists through reloads of apache; apache version is 1.3.26. With so many people obviously affected by this PHP bug across multiple platforms, I'm concerned that the answer from PHP seems to be it's not a PHP problem promptly followed by marking threads as bogus. --Scott! 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=26016edit=1
#26016 [Com]: Warning: fsockopen(): Bug
ID: 26016 Comment by: webmaster at zaedno dot de Reported By: hill at bluecarrots dot com Status: No Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3 New Comment: 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. Previous Comments: [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). [2004-05-04 21:57:10] scott at marinar dot com The same is seen here with php 4.3.6 freshly compiled on Debian / Linux. Configure command is ./configure --enable-bcmath --with-openssl=/usr/local/openssl --with-mysql --with-apxs=/usr/bin/apxs --prefix=/usr/local This bug persists through reloads of apache; apache version is 1.3.26. With so many people obviously affected by this PHP bug across multiple platforms, I'm concerned that the answer from PHP seems to be it's not a PHP problem promptly followed by marking threads as bogus. --Scott! [2004-03-19 03:39:53] andrew at shh dot fi The error is real except this guy has the wrong script. I have the same problem - this is the script: $method = ssl://; $host = myserver.com; $port = 443; $fp = fsockopen($method.$host, $port, $errno, $errstr, $timeout = 30); I get the error: Warning: fsockopen(): no SSL support in this build AND SSL is loaded in php. Its a bug I patch on windows, but need one for linux [2003-11-03 14:06:38] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. 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=26016edit=1
#26016 [Com]: Warning: fsockopen(): Bug
ID: 26016 Comment by: scott at marinar dot com Reported By: hill at bluecarrots dot com Status: No Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3 New Comment: The same is seen here with php 4.3.6 freshly compiled on Debian / Linux. Configure command is ./configure --enable-bcmath --with-openssl=/usr/local/openssl --with-mysql --with-apxs=/usr/bin/apxs --prefix=/usr/local This bug persists through reloads of apache; apache version is 1.3.26. With so many people obviously affected by this PHP bug across multiple platforms, I'm concerned that the answer from PHP seems to be it's not a PHP problem promptly followed by marking threads as bogus. --Scott! Previous Comments: [2004-03-19 03:39:53] andrew at shh dot fi The error is real except this guy has the wrong script. I have the same problem - this is the script: $method = ssl://; $host = myserver.com; $port = 443; $fp = fsockopen($method.$host, $port, $errno, $errstr, $timeout = 30); I get the error: Warning: fsockopen(): no SSL support in this build AND SSL is loaded in php. Its a bug I patch on windows, but need one for linux [2003-11-03 14:06:38] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2003-10-28 04:44:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. please provide a sample script to illustrate the problem [2003-10-28 04:40:30] hill at bluecarrots dot com Description: I get the warning at the top of the page. Several refreshes of the browser rectifies. Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blahphp on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.php on line 14 Resource temporarily unavailable (11) Reproduce code: --- Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blahphp on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.php on line 14 Resource temporarily unavailable (11) Expected result: I expect the page to connect securely to a secure server and send some secure details. I get the warning at the top of the page. Several refreshes of the browser rectifies. I have to use this PHP code, which has been provided by the Payment provider, to get to a server that takes online payments, some information is first sent securely in order to reach the payment page on the Payment providers server. Actual result: -- The simle page takes time to load and when it does the fsockopen warning is present. -- Edit this bug report at http://bugs.php.net/?id=26016edit=1
#26016 [Com]: Warning: fsockopen(): Bug
ID: 26016 Comment by: andrew at shh dot fi Reported By: hill at bluecarrots dot com Status: No Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3 New Comment: The error is real except this guy has the wrong script. I have the same problem - this is the script: $method = ssl://; $host = myserver.com; $port = 443; $fp = fsockopen($method.$host, $port, $errno, $errstr, $timeout = 30); I get the error: Warning: fsockopen(): no SSL support in this build AND SSL is loaded in php. Its a bug I patch on windows, but need one for linux Previous Comments: [2003-11-03 14:06:38] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2003-10-28 04:44:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. please provide a sample script to illustrate the problem [2003-10-28 04:40:30] hill at bluecarrots dot com Description: I get the warning at the top of the page. Several refreshes of the browser rectifies. Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blahphp on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.php on line 14 Resource temporarily unavailable (11) Reproduce code: --- Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blahphp on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.php on line 14 Resource temporarily unavailable (11) Expected result: I expect the page to connect securely to a secure server and send some secure details. I get the warning at the top of the page. Several refreshes of the browser rectifies. I have to use this PHP code, which has been provided by the Payment provider, to get to a server that takes online payments, some information is first sent securely in order to reach the payment page on the Payment providers server. Actual result: -- The simle page takes time to load and when it does the fsockopen warning is present. -- Edit this bug report at http://bugs.php.net/?id=26016edit=1