php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45051 odbc_pconnect() crashes
Submitted: 2008-05-20 16:46 UTC Modified: 2008-05-22 20:07 UTC
From: glillibridge at yahoo dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 5.2.6 OS: NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: glillibridge at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-05-20 16:46 UTC] glillibridge at yahoo dot com
Description:
------------
This is a repost of 45026, now marked bogus. We loaded php 5.2.6 and still get almost the same problem. The only difference is that the access violation location has changed.

We are trying to establish a connection to a MAS200 server (also on
NT).
This is the actual php line:
$crs =
odbc_pconnect("dsn=SOTAMAS90;company=LNC;UID=acs;PWD=acsg","","");

Sometimes it works and returns connection identifier.
Most times it returns the message:
PHP has encountered an Access Violation at 034F10D0

This uses an odbc source identified in the web server, using an internal IP.




Reproduce code:
---------------
$crs =
odbc_pconnect("dsn=SOTAMAS90;company=LNC;UID=acs;PWD=acsg","","");
echo "<br>========" . odbc_error($crs) . "==" . $crs . "========<br>" ;

Expected result:
----------------
<br>========S000==========<br>

Actual result:
--------------
PHP has encountered an Access Violation at 034F10D0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-22 08:38 UTC] jani@php.net
I would guess using odbc_connect() works fine..?
 [2008-05-22 20:07 UTC] glillibridge at yahoo dot com
I am afraid that is not a problem, but something wrong on NT. I have put a new domain user as the iis user, got it working (I also had to put the iis 5.0 isolator on). The old user (not a domain user, but a special one set up by microsoft for iis) was inconsistantly reacted to when a connection was attempted. Why, I am not positive. It was the same for odbc_connect() as for odbc_pconnect. 

I believe that some how the local area network was slow in returning an access violation and php did not get it.

I have closed it, since several 100 tests have been unable to reproduce it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 17:01:33 2024 UTC