php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11735 mssql_pconnect fails
Submitted: 2001-06-27 09:52 UTC Modified: 2002-08-17 01:58 UTC
From: kris at gearboxx dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.0.5 OS: Win 2000 w/SP 2
Private report: No CVE-ID: None
 [2001-06-27 09:52 UTC] kris at gearboxx dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-28 09:53 UTC] kris at gearboxx dot com
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.
 [2002-08-17 01:58 UTC] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 14:01:30 2024 UTC