php-windows | 2001051

[PHP-WIN] why mysql_connect crashes in Windows From: John Henckel (henckel <email protected>)
Date: 05/10/01

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 <email protected>
Zumbro Falls, Minnesota, USA (507) 753-2216

http://geocities.com/jdhenckel/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
For additional commands, e-mail: php-windows-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>