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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: juha at linearteam dot org
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 12 17:01:24 2021 UTC