php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18342 Can't create TCP/IP socket (10106)
Submitted: 2002-07-14 16:30 UTC Modified: 2002-07-24 11:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: phpbug at gpsnow dot fsnet dot co dot uk Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.2 OS: Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbug at gpsnow dot fsnet dot co dot uk
New email:
PHP Version: OS:

 

 [2002-07-14 16:30 UTC] phpbug at gpsnow dot fsnet dot co dot uk
i am trying to install snort in windows, and followed the steps mentioned here

http://www.silicondefense.com/techsupport/winsnortacid-iis_1.8.7.htm

everything else works, snort on windows works, mysql server on windows works, except php. i have downloaded the php.exe and placed into c:\php\ folder the php4ts.dll and the .exe. then php.ini in the c:\winnt\system32 folder. From iis i can run simple php scripts like 
<? phpinfo() ; ?>
and therefore i know that php interpreter is doing its
job fine and it has been installed in IIS 5 correctly.

but when i try to use ACID (that runs php code in adodb1.9), I get an error
=====================================
Warning: Can't create TCP/IP socket (10106) in C:\Snort\ADODB\drivers\adodb-mysql.inc.php on line 115

Database ERROR:Can't create TCP/IP socket (10106)

=====================================

Now this error has been mentioned on the web many places, just search for 'TCP/IP socket (10106)' on google.com

somebody says it is to do with winsock dll and some body says it is to do with php.ini file mysql.default_port variable.

i've tried everything but get the same error. please help
me, it is becoming a headache. this could be a problem
introduced due to a small change in this newer version
of php so it becomes incompatible with ADODB 1.90. but
i don't know what it is. does anybody know how to fix
this problem?

to reproduce the problem:
install php cgi on windows 2000 iis 5.
place a file named test.php in the root
directory of the website. content just one line:
<? phpinfo() ; ?>
now download and unzip ADODB 1.9 
download location and a file modification instructed here:
http://www.silicondefense.com/techsupport/winsnortacid-iis_1.8.7.htm
create another file called test2.php with this content
<?php
include('c:\adodb\adodb.inc.php');
$c = NewADOConnection('mysql');
$c->PConnect('servername','username','nothing');
?>

open a browser and visit
http://localhost/test2.php

now we should get an error saying the server canot be
found because a server called 'servername' cannot be
found. instead we get the error tcp socket could not
be created. now even when i have a server installed
and guaranteed to be working i am stuck with this 
tcp socket creation error. its a problem with php.exe because
the interpreter is not allowing reused php code to
create a socket. it will allow tcp socket creation if
attempted in test2.php itself.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-14 18:33 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 [2002-07-24 10:42 UTC] phpbug at gpsnow dot fsnet dot co dot uk
Now i've downloaded and installed the latest version but the error is still there. can you look into it now? please.

Database ERROR:Can't create TCP/IP socket (10106)


Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\acid\acid_action.inc on line 439 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of action_email_alert_post(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\acid\acid_action.inc on line 667 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of action_email_alert_post(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\acid\acid_action.inc on line 667 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of action_email_alert_post(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\acid\acid_action.inc on line 689 PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of action_email_alert_post(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Inetpub\wwwroot\acid\acid_action.inc on line 689 PHP Warning: Cannot send session cookie - headers already sent in C:\Inetpub\wwwroot\acid\acid_state_common.inc on line 126 PHP Warning: Cannot send session cache limiter - headers already sent in C:\Inetpub\wwwroot\acid\acid_state_common.inc on line 126 PHP Notice: Undefined index: HTTP_REFERER in C:\Inetpub\wwwroot\acid\acid_log_error.inc on line 37 PHP Notice: Undefined index: QUERY_STRING in C:\Inetpub\wwwroot\acid\acid_log_error.inc on line 38 PHP Warning: Can't create TCP/IP socket (10106) in C:\Snort\ADODB\drivers\adodb-mysql.inc.php on line 115
 [2002-07-24 11:01 UTC] hholzgra@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC