Bug #11735 Updated: mssql_pconnect fails
| From: | kris at gearboxx dot com | Date: | Thu, 28 Jun 2001 13:53:00 +0000 |
| Subject: | Bug #11735 Updated: mssql_pconnect fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58324@lists.php.net to get a copy of this message | ||
ID: 11735
User Update by: kris@gearboxx.com
Status: Open
Bug Type: MSSQL related
Operating system: Win 2000 w/SP 2
PHP Version: 4.0.5
Description: mssql_pconnect fails
Update:
I was wrong about the 'connect' solution. It seems that just using connect just prolongs
the time until the crash. Once the crash occurrs, no further MSSQL connections will occurr either
external or to the same machine. The only solution that does not break is if the database is on the
same machine as the web server.
Kris.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-27 09:52:23] kris@gearboxx.com
Hey.
It seems there is a problem with mssql_pconnect and connecting to an outside databases. If the
database, PHP, and web server are all running on the same machine, pconnnect works just fine with no
errors. If the database is external, the pconnect will succeed the first time, but fail for
subsequent tries with a PHP access violation error message. The pconnect is connecting to a MS SQL
7 server via the server IP address, userid, and password combination.
Two things seem to cause the connection not to break: switch the mssql_pconnect command to
mssql_connect or have the database, PHP, and web server all be the same machine.
Please email me if more information is needed to help solve this problem. PHP is wonderfull!!
Thank you and have a nice day!
Kris.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11735