PHP 4.0 Bug #7673: PHP crashes when odbc_result is given a result ID as its second parameter
| From: | jacobm at rice dot edu | Date: | Tue, 07 Nov 2000 05:50:11 +0000 |
| Subject: | PHP 4.0 Bug #7673: PHP crashes when odbc_result is given a result ID as its second parameter | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37329@lists.php.net to get a copy of this message | ||
From: jacobm@rice.edu
Operating system: Windows \'98
PHP version: 4.0.3pl1
PHP Bug Type: ODBC related
Bug description: PHP crashes when odbc_result is given a result ID as its second parameter
On my test machine (a Windows 98 box running the precompiled Win32 PHP 4.0.3pl1 binary as a CGI
program on top of Apache 1.3.12), the following (admittedly bizarre) code will crash PHP:
$db = odbc_connect("db1","","");
$result = odbc_exec("SELECT * FROM table1");
while ($odbc_fetch_row($result)) {
print odbc_result($result, $result);
}
It will crash it no matter what resource ID PHP has assigned to $result, and even if
odbc_result's arguments 1 and 2 point to different result sets, even from different databases.
--
Edit Bug report at: http://bugs.php.net/?id=7673&edit=1