php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6796 Interbase crash
Submitted: 2000-09-17 20:34 UTC Modified: 2000-11-11 16:08 UTC
From: juha at linearteam dot org Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.2 OS: NT2000 Professional
Private report: No CVE-ID: None
 [2000-09-17 20:34 UTC] juha at linearteam dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-27 23:27 UTC] jah@php.net
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.

 [2000-11-11 16:08 UTC] dbeu@php.net
no feedback, and other users reported that this problem is solved.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 02:01:27 2024 UTC