#4115 [Opn->]: fsockopen causes script to exit

From: Date: Tue, 01 Oct 2002 18:27:31 +0000
Subject: #4115 [Opn->]: fsockopen causes script to exit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21012@lists.php.net to get a copy of this message
ID: 4115 Updated by: hholzgra@php.net Reported By: nemanjas@fon.fon.bg.ac.yu -Status: Open +Status: Won\'t fix Bug Type: Other Operating System: NT4 SP5 PHP Version: 3.0.16 New Comment: We are sorry, but can not support PHP 3 related problems anymore. Momentum is gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will will continue to be supported for the forseeable future. ... might as well have been winsock problem Previous Comments: ------------------------------------------------------------------------ [2000-04-12 07:04:42] nemanjas@fon.fon.bg.ac.yu It seem if you pass invalid host name to fsockopen, and you are online, script crashes. If offline all is ok. Example: $sock = fsockopen($ns, 53, $error, $errstr, 60); if(!$sock) { printf("Nije uspela konekcija!<br>\n"); return -1; } else { } if ns is invalid like yuo have 2 dots in name script do a printf and exit's form script (this was a function). It seems if lookup fails, there are problems. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=4115&edit=1

« previous php.bugs (#21012) next »