#50356 [Com]: mysql_connect timeout / server reset when executing as module
| From: | jonathan at techcube dot net | Date: | Sun, 06 Dec 2009 12:49:25 +0000 |
| Subject: | #50356 [Com]: mysql_connect timeout / server reset when executing as module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145449@lists.php.net to get a copy of this message | ||
ID: 50356
Comment by: jonathan at techcube dot net
Reported By: monochromec at gmail dot com
Status: Feedback
Bug Type: MySQL related
Operating System: Windows 7
PHP Version: 5.2.11
New Comment:
Same problem with 64bit windows 7.
Sample code:
http://sg.php.net/manual/en/mysql.examples-basic.php
This would show the problem.
As long as mysql_connect() is present, the problem would occur.
Previous Comments:
------------------------------------------------------------------------
[2009-12-01 21:10:07] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2009-12-01 21:02:12] monochromec at gmail dot com
Description:
------------
When executing mysql_connect with 5.2.11 running as a module under
Apache 2.2.14 on a Windows 7 platform, mysql_connect times out and the
browser reports "connection reset" or similar depending on the used
browser. This behaviour was first observed with phpMyAdmin 3.2.3 (file
library/dbi/mysql.dbi.lib.php, line 38). When changing the invocation
type from module to (f)cgi, the problem disappears. This behaviour is
reproducible with 5.3.1 (vc6-x86). MySQL is version 5.1, client side
5.0.51a (as reported by phpinfo).
Reproduce code:
---------------
Cf. mysql.dbi.lib.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50356&edit=1