#20232 [Com]: Error When host is not 127.0.0.1

From: Date: Tue, 05 Nov 2002 00:09:17 +0000
Subject: #20232 [Com]: Error When host is not 127.0.0.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24071@lists.php.net to get a copy of this message
 ID:               20232
 Comment by:       pickleman78@sbcglobal.net
 Reported By:      pickleman78@sbcglobal.net
 Status:           Feedback
 Bug Type:         Sockets related
 Operating System: Windows ME
 PHP Version:      4.2.3
 New Comment:

I deleted everything form my PHP directory and replaced all the files.
All the librares are contained in one directory, and yes this is with
the same script, same everything, just a new place the error occurred


Previous Comments:
------------------------------------------------------------------------

[2002-11-04 17:55:34] iliaa@php.net

Is it the same script script, which causes the error or does it happen
in a different location?
Also, when you upgraded to latest CVS, did you make sure you did not
have any old PHP libraries lying around?

------------------------------------------------------------------------

[2002-11-04 17:53:29] pickleman78@sbcglobal.net

Well, It fixed one thing and caused another. Now PHP causes an error in
PHP4TS.DLL instead of MSCVRT.DLL.

------------------------------------------------------------------------

[2002-11-04 12:52:09] iliaa@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-11-03 18:23:21] pickleman78@sbcglobal.net

When I attempt to create a socket on any host besides 127.0.0.1
(including my own IP) I get an error...

Php has caused an error in MSCVRT.DLL
Php will now close

I call the script from the command line using php -q socket.php

With the host set to 127.0.0.1 it works just fine. here is a cde
piece.

<?php
$host="myipadress;
$port=1863;


set_time_limit(0);

//create a new socket

$socket=socket_create(AF_INET, SOCK_STREAM,0) or die("Could not create
a socket\n");

//binds the socket

$result=socket_bind($socket,$host,$port) or die("Could not bind
socket\n");
?>

and I get the error. Note myipadress would be my actual IP adress, but
i replaced it for security reasons.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20232&edit=1



Thread (12 messages)

« previous php.bugs (#24071) next »