go to bug id or search bugs for
I was getting the same error as in report 4540. After poking through the source a bit, I found that it was caused by the mssql_globals structure not being properly initialized. A quick fix was to add the line:
before the line:
MS_SQL_G(get_column_content(mssql_ptr, j, &result->data[i][j-1], column_types[j-1]));
However, since this doesn't fix the other parts of the structure that weren't initialized, there are likely other functions where will still be broken.
Add a Patch
Add a Pull Request
The fix you applied is not needed.
is called correctly during initialization.
I tried this again on php4-200006081545 and it seems to have the same problem. It still appears that the module isn't peoperly being initialized
I just submitted a fix to the CVS. Can you test it?
I just tried it an got a "Tried to access invalid memory location" error. Also, on another page with phpinfo() it did not show that the mssql module was loading. When I have more time I'll try poking around a bit more to try to figure out whats going on. But the short answer is that it still isn't working.
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".