PHP 4.0 Bug #4797: Access Violation cause
| From: | tpowell at villageauction dot com | Date: | Sat, 03 Jun 2000 18:41:37 +0000 |
| Subject: | PHP 4.0 Bug #4797: Access Violation cause | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20137@lists.php.net to get a copy of this message | ||
From: tpowell@villageauction.com
Operating system: WinNT 4.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: MSSQL related
Bug description: Access Violation cause
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:
MS_SQL_G(get_column_content)= php_mssql_get_column_content_with_type;
before the line:
MS_SQL_G(get_column_content(mssql_ptr, j, &result->data[i][j-1], column_types[j-1]));
in PHP_FUNCTION(mssql_query)
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.
Tim