#23149 [Fbk->NoF]: fsockopen uses port as hostname

From: Date: Mon, 28 Apr 2003 16:16:18 +0000
Subject: #23149 [Fbk->NoF]: fsockopen uses port as hostname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38608@lists.php.net to get a copy of this message
ID: 23149 Updated by: sniper@php.net Reported By: fcv at dev6 dot com -Status: Feedback +Status: No Feedback Bug Type: Sockets related Operating System: Windows XP Pro PHP Version: 4.3.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-04-21 14:50:40] pollita@php.net First, to clear that point up, DreamweaverMX is wrong. Protocol is specified in hostname or not at all. Second, Try using "tcp://10.1.2.9" for your hostname and see if it helps. Lastly, I'd like to ask that you post your entire source code somewhere so that the problem can be investigated more thoroughly. ------------------------------------------------------------------------ [2003-04-21 10:41:47] fcv at dev6 dot com Additionally, the error code and errormsg are clear UNTIL i try my first read on the stream. I've seen comments on this situation somewhere on this site, and their solution (specify a timeout value) does not work at all. Behaviour is exactly the same on the latest snapshot (downloaded a few minutes earlier) ------------------------------------------------------------------------ [2003-04-21 10:32:06] fcv at dev6 dot com Tried using debug_zval_dump($this->host); today (21) and it displays the correct hostname: "string(8) "10.1.2.9" refcount(2)" Downloading snapshot now. Will post results later on today. ------------------------------------------------------------------------ [2003-04-21 09:22:20] sniper@php.net 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-04-10 09:01:49] wez@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip On the line before the fsockopen call, add this line: debug_zval_dump($this->host); If it displays the correct host name, please try a snapshot. If it does not display the correct host name, the bug is elsewhere in your script. ------------------------------------------------------------------------ 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/23149 -- Edit this bug report at http://bugs.php.net/?id=23149&edit=1

« previous php.bugs (#38608) next »