From:             [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:      4.1.1
PHP Bug Type:     MSSQL related
Bug description:  mssql_query (and mssql_select_db) crashes php.exe

I am able to connect to SQL Server v7.0 over the network, but after I am
connected (with either _connect or _pconnect), mssql_select_db with a
valid db crashes php.exe.

If I remove mssql_select_db call, mssql_query crashes.

When I removed mssql_select_db call, I added a login to the server which
used my db as the default db (so I wouldnt need to select it obviously). I
changed my mssql_connect call to reflect the new username and password. I
forgot to add select permissions for the table I created, and when I tried
to run the code, it actually printed out an error stating that the MSSQL
driver couldn't select on the table because of the lack of permissions.
When I added permissions to the server and re-ran the code, it then
crashed php.exe.

All crashes are 'instruction at "0x00000000" tried to reference
"0x00000000"' so that is not really helpful.
-- 
Edit bug report at http://bugs.php.net/?id=15765&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15765&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15765&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15765&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15765&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15765&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15765&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15765&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15765&r=submittedtwice

Reply via email to