why mysql_connect crashes in Windows
| From: | John Henckel | Date: | Thu, 10 May 2001 16:08:28 +0000 |
| Subject: | why mysql_connect crashes in Windows | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7466@lists.php.net to get a copy of this message | ||
Here is a bit of advice for those of you trying to use MYSQL with PHP4 (cgi mode) on Windows.
I use "localhost" with Xitami on Win98 for PHP development and it is a very good environment. But, for a long time my PHP scripts would occasionally crash, and I would get
ERROR: This program performed an illegal operation and will be shut down.
PHP caused an invalid page fault in module PHP4TS.DLL at 0167:100b0eda.
and it was VERY FRUSTRATING because I could not discover the problem.
Finally I decided it must be a thread-safety problem, so I added a sleep(2); just before mysql_connect() and the PROBLEM IS GONE!!!
John Henckel alt. mailto:henckel@iname.comZumbro Falls, Minnesota, USA (507) 753-2216 http://geocities.com/jdhenckel/