php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35294 MySQL extension causes Can't create thread error on some websites on my server.
Submitted: 2005-11-19 16:48 UTC Modified: 2005-11-19 19:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cjm at cjmweb dot fsnet dot co dot uk Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.5 OS: Windows NT Server 4
Private report: No CVE-ID: None
 [2005-11-19 16:48 UTC] cjm at cjmweb dot fsnet dot co dot uk
Description:
------------
I have enabled PHP-MySQL and set up MySQL correctly so that it all works.  However, a few days ago, PHP-MySQL stopped working on some VHosts and stayed working on others.  The problem is the fact that it works under some conditions, but not others.

The mysql_connect code in this article is the same in both VHosts.

Reproduce code:
---------------
<?php
mysql_connect("localhost","user","pwd"); //ERROR here!
?>

Expected result:
----------------
I expect the admin interface or website to come up depending on the non-working domain.

Actual result:
--------------
Warning: mysql_connect() [function.mysql-connect]: Can't create a new thread (errno 12). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug in F:\wwwroot\index.php on line 23
Could not connect to mysql because Can't create a new thread (errno 12). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-19 16:55 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-11-19 17:09 UTC] cjm at cjmweb dot fsnet dot co dot uk
The download of the newer version has had no effect.
 [2005-11-19 17:22 UTC] tony2001@php.net
What version of MySQL are you using?
 [2005-11-19 17:32 UTC] cjm at cjmweb dot fsnet dot co dot uk
MySQL Version is 5.015-nt

I just realised something.  It works in any subfolder of F:\wwwroot\ even if it is a root web folder.  It is only F:\wwwroot\ and F:\sslroot\ that cause problems.

This would seem strange.
We are running Apache though, despite the wwwroot.  That was our naming choice at the time.
 [2005-11-19 17:36 UTC] tony2001@php.net
The error message you get comes from MySQL.
What makes you think it's a problem of PHP, not MySQL?
 [2005-11-19 19:14 UTC] cjm at cjmweb dot fsnet dot co dot uk
I have submitted to the MySQL Bug Trackers as well.  It appears that they are telling me that there is a bug min our scripts.
 [2005-11-19 19:20 UTC] cjm at cjmweb dot fsnet dot co dot uk
I have resolved this as a MySQL bug, and therefore, it is no longer relevent here.
 [2005-11-19 19:27 UTC] tony2001@php.net
Not PHP bug -> bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 22:00:01 2025 UTC