[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Im currently running into the same issue with the base install of SUSE 7.3, fopen(), fsockopen(), and file() also to not work with URL's or an ip address. Previous Comments: [2001-12-07 09:12:30] [EMAIL PROTECTED] its a problem with your operating system setup, not PHP. [2001-08-09 15:02:48] [EMAIL PROTECTED] Still not resolved. I commented out the line: #define HAVE_GETADDRINFO 1 from my main/php_config.h file, did a make, then a make install. Recompiled Apache, stopped and started the server, and still have the same errors. I also tried changing the value to 0, and did the same to #define LIBRESOLV 1 to see if that was the problem (for some reason there are 2 identical lines with LIBRESOLV in my php_config.h file). Nothing. Any ideas? This was working perfectly before upgrading to PHP4, and I haven't touched the box except to upgrade Apache and install OpenSSL. [2001-08-07 12:56:13] [EMAIL PROTECTED] Still having the same issue with 4.0.6 now. I'll try and recompile without the GETADDRINFO line and see what happens. [2001-08-03 22:53:11] [EMAIL PROTECTED] What's the status for this?? [2001-07-22 04:45:41] [EMAIL PROTECTED] Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. 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/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 Updated by: sterling Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: its a problem with your operating system setup, not PHP. Previous Comments: [2001-08-09 15:02:48] [EMAIL PROTECTED] Still not resolved. I commented out the line: #define HAVE_GETADDRINFO 1 from my main/php_config.h file, did a make, then a make install. Recompiled Apache, stopped and started the server, and still have the same errors. I also tried changing the value to 0, and did the same to #define LIBRESOLV 1 to see if that was the problem (for some reason there are 2 identical lines with LIBRESOLV in my php_config.h file). Nothing. Any ideas? This was working perfectly before upgrading to PHP4, and I haven't touched the box except to upgrade Apache and install OpenSSL. [2001-08-07 12:56:13] [EMAIL PROTECTED] Still having the same issue with 4.0.6 now. I'll try and recompile without the GETADDRINFO line and see what happens. [2001-08-03 22:53:11] [EMAIL PROTECTED] What's the status for this?? [2001-07-22 04:45:41] [EMAIL PROTECTED] Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. [2001-07-21 21:47:35] [EMAIL PROTECTED] Please check that your nameserver is running and setup correctly. Check the same with your internet server. 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/?id=11058 Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Still not resolved. I commented out the line: #define HAVE_GETADDRINFO 1 from my main/php_config.h file, did a make, then a make install. Recompiled Apache, stopped and started the server, and still have the same errors. I also tried changing the value to 0, and did the same to #define LIBRESOLV 1 to see if that was the problem (for some reason there are 2 identical lines with LIBRESOLV in my php_config.h file). Nothing. Any ideas? This was working perfectly before upgrading to PHP4, and I haven't touched the box except to upgrade Apache and install OpenSSL. Previous Comments: [2001-08-07 12:56:13] [EMAIL PROTECTED] Still having the same issue with 4.0.6 now. I'll try and recompile without the GETADDRINFO line and see what happens. [2001-08-03 22:53:11] [EMAIL PROTECTED] What's the status for this?? [2001-07-22 04:45:41] [EMAIL PROTECTED] Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. [2001-07-21 21:47:35] [EMAIL PROTECTED] Please check that your nameserver is running and setup correctly. Check the same with your internet server. [2001-05-23 11:58:00] [EMAIL PROTECTED] I've seen this issue posted here a few times, and I think my problem is similar to Bug id #7880. fopen(), fsockopen(), and file() will not work with URL or IP address parameters. include() has the same issue. I believe it has something to do with getaddrinfo. Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working perfectly with URL parameters. My configure script looks like this: ./configure --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local --enable-track-vars --with-xml --with-openssl=/usr/local/ssl My php.ini DOES contain the line allow_url_fopen = On The fopen() script looks like this: $fd = fopen( http://www.php.net/;, r ); if( !$fd ) { echo Cannot open URL; } else { while ( !feof( $fd ) ) { $buffer = fgets( $fd, 4096 ); echo $buffer; } fclose ( $fd ); } and produces this output: Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in /var/www/patrickhaney.com/www/weather/test.php on line 24 Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in /var/www/patrickhaney.com/www/weather/test.php on line 24 Cannot open URL and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of the hostname produces the same output. If I use the fsockopen() function with this script: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); if(!$fp) { echo Error: $errstr ($errno)br\n; } else { fputs($fp,GET / HTTP/1.0\n\n); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); } I get this output: Error: (0) Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 Old PHP Version: 4.0.5 PHP Version: 4.0.6 New Comment: Still having the same issue with 4.0.6 now. I'll try and recompile without the GETADDRINFO line and see what happens. Previous Comments: [2001-08-03 22:53:11] [EMAIL PROTECTED] What's the status for this?? [2001-07-22 04:45:41] [EMAIL PROTECTED] Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. [2001-07-21 21:47:35] [EMAIL PROTECTED] Please check that your nameserver is running and setup correctly. Check the same with your internet server. [2001-05-23 11:58:00] [EMAIL PROTECTED] I've seen this issue posted here a few times, and I think my problem is similar to Bug id #7880. fopen(), fsockopen(), and file() will not work with URL or IP address parameters. include() has the same issue. I believe it has something to do with getaddrinfo. Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working perfectly with URL parameters. My configure script looks like this: ./configure --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local --enable-track-vars --with-xml --with-openssl=/usr/local/ssl My php.ini DOES contain the line allow_url_fopen = On The fopen() script looks like this: $fd = fopen( http://www.php.net/;, r ); if( !$fd ) { echo Cannot open URL; } else { while ( !feof( $fd ) ) { $buffer = fgets( $fd, 4096 ); echo $buffer; } fclose ( $fd ); } and produces this output: Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in /var/www/patrickhaney.com/www/weather/test.php on line 24 Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in /var/www/patrickhaney.com/www/weather/test.php on line 24 Cannot open URL and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of the hostname produces the same output. If I use the fsockopen() function with this script: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); if(!$fp) { echo Error: $errstr ($errno)br\n; } else { fputs($fp,GET / HTTP/1.0\n\n); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); } I get this output: Error: (0) Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 PHP Version: 4.0.5 New Comment: Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work then? There are some broken getaddrinfo() implementations out there, but I would be surprised if there were problems with OpenBSD in general. Might be something wrong with your resolver library. OTH, you also have a problem with fsockopen() and that uses the old gethostbyname() I think, so it seems to be resolving in general. Previous Comments: [2001-07-21 21:47:35] [EMAIL PROTECTED] Please check that your nameserver is running and setup correctly. Check the same with your internet server. [2001-05-23 11:58:00] [EMAIL PROTECTED] I've seen this issue posted here a few times, and I think my problem is similar to Bug id #7880. fopen(), fsockopen(), and file() will not work with URL or IP address parameters. include() has the same issue. I believe it has something to do with getaddrinfo. Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working perfectly with URL parameters. My configure script looks like this: ./configure --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local --enable-track-vars --with-xml --with-openssl=/usr/local/ssl My php.ini DOES contain the line allow_url_fopen = On The fopen() script looks like this: $fd = fopen( http://www.php.net/;, r ); if( !$fd ) { echo Cannot open URL; } else { while ( !feof( $fd ) ) { $buffer = fgets( $fd, 4096 ); echo $buffer; } fclose ( $fd ); } and produces this output: Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in /var/www/patrickhaney.com/www/weather/test.php on line 24 Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in /var/www/patrickhaney.com/www/weather/test.php on line 24 Cannot open URL and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of the hostname produces the same output. If I use the fsockopen() function with this script: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); if(!$fp) { echo Error: $errstr ($errno)br\n; } else { fputs($fp,GET / HTTP/1.0\n\n); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); } I get this output: Error: (0) Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed
ID: 11058 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 PHP Version: 4.0.5 New Comment: Please check that your nameserver is running and setup correctly. Check the same with your internet server. Previous Comments: [2001-05-23 11:58:00] [EMAIL PROTECTED] I've seen this issue posted here a few times, and I think my problem is similar to Bug id #7880. fopen(), fsockopen(), and file() will not work with URL or IP address parameters. include() has the same issue. I believe it has something to do with getaddrinfo. Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working perfectly with URL parameters. My configure script looks like this: ./configure --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local --enable-track-vars --with-xml --with-openssl=/usr/local/ssl My php.ini DOES contain the line allow_url_fopen = On The fopen() script looks like this: $fd = fopen( http://www.php.net/;, r ); if( !$fd ) { echo Cannot open URL; } else { while ( !feof( $fd ) ) { $buffer = fgets( $fd, 4096 ); echo $buffer; } fclose ( $fd ); } and produces this output: Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in /var/www/patrickhaney.com/www/weather/test.php on line 24 Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in /var/www/patrickhaney.com/www/weather/test.php on line 24 Cannot open URL and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of the hostname produces the same output. If I use the fsockopen() function with this script: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); if(!$fp) { echo Error: $errstr ($errno)br\n; } else { fputs($fp,GET / HTTP/1.0\n\n); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); } I get this output: Error: (0) Edit this bug report at http://bugs.php.net/?id=11058edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]