PHP 4.0 Bug #6796 Updated: Interbase crash

From: Date: Sat, 28 Oct 2000 03:27:39 +0000
Subject: PHP 4.0 Bug #6796 Updated: Interbase crash
Groups: php.dev 
Request: Send a blank email to php-dev+get-36175@lists.php.net to get a copy of this message
ID: 6796 Updated by: jah Reported By: juha@linearteam.org Status: Feedback Bug Type: InterBase related Assigned To: Comments: This is, I hope, fixed (can't test it because I don't have any Windows machine).You should fetch php4.0.4-dev for win32 from http://www.php4win.de. Or if you would rather stay with a release version, php4.0.3 for win32 from the same place and contact me (jah@php.net) directly for an updated version of php_interbase.dll (thanks to Daniel Beulshausen for compiling it), there was still one critical InterBase-related bug in 4.0.3. Previous Comments: --------------------------------------------------------------------------- [2000-09-17 20:34:01] juha@linearteam.org PHP.EXE was used as standalone, with php_interbase.dll configured as module. Trying to connect/query to InterBase database with: $dbh = ibase_connect(xxx, xxx, xxx); $stmt = 'SELECT * FROM customer'; $sth = ibase_query ($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { print $row->co_name; } ibase_close ($dbh); If ibase_connect fails, and ibase_query gets executed, PHP.EXE will crash. Following was captured as output from PHP.EXE before crash: Warning: 0 is not a valid InterBase link resource in xxx.php on line 17 Where line 17 is ibase_query. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6796

« previous php.dev (#36175) next »