From:             cjm at cjmweb dot fsnet dot co dot uk
Operating system: Windows NT Server 4
PHP version:      5.0.5
PHP Bug Type:     MySQL related
Bug description:  MySQL extension causes Can't create thread error on some 
websites on my server.

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

-- 
Edit bug report at http://bugs.php.net/?id=35294&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35294&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35294&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35294&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35294&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35294&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35294&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35294&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35294&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35294&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35294&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35294&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35294&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35294&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35294&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35294&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35294&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35294&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35294&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35294&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35294&r=mysqlcfg

Reply via email to