|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20232 php.exe causes errors when using socket_create
Submitted: 2002-11-03 18:23 UTC Modified: 2002-12-26 20:13 UTC
From: pickleman78 at sbcglobal dot net Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.4.0-dev OS: Windows ME
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 35 = ?
Subscribe to this entry?

 [2002-11-03 18:23 UTC] pickleman78 at sbcglobal dot net
When I attempt to create a socket on any host besides (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 it works just fine. here is a cde piece.



//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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-04 12:52 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-11-04 17:53 UTC] pickleman78 at sbcglobal dot net
Well, It fixed one thing and caused another. Now PHP causes an error in PHP4TS.DLL instead of MSCVRT.DLL.
 [2002-11-04 17:55 UTC]
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 18:09 UTC] pickleman78 at sbcglobal dot net
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
 [2002-11-07 18:48 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-11-07 18:49 UTC]
forget that last comment, I was just changing the PHP version information..

 [2002-11-08 16:49 UTC] pickleman78 at sbcglobal dot net
How odd.

I have found some other interesiting tidbit. It will not accept any string, but this does work...

 [2002-11-12 22:33 UTC] pickleman78 at sbcglobal dot net
ok, well, i have scontinued to test it, and it is not just the script i wroe, I also changed the title to something that seems more descriptive to the problem
 [2002-12-19 23:10 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-12-20 22:13 UTC] pickleman78 at sbcglobal dot net
Still nothing, can anyone else actually confirm this error or is my machine just messed up.
 [2002-12-26 20:13 UTC]
This seems to have been fixed in 4.3.0RC4. I just tested this on my machine and it worked fine. Please reopen if you still experience this problem.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 17:01:32 2024 UTC