php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6964 Connection won't close
Submitted: 2000-09-30 20:22 UTC Modified: 2000-12-07 11:45 UTC
From: antosj at feld dot cvut dot cz Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.2 OS: Win98
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: antosj at feld dot cvut dot cz
New email:
PHP Version: OS:

 

 [2000-09-30 20:22 UTC] antosj at feld dot cvut dot cz
the script goes as follows:

<?php
  $spojeni = ibase_connect($host,"guest","guest");
  $vys = ibase_query("select * from vyrobky;", $spojeni);
  $i = 0;
  while ($sql = ibase_fetch_object($vys)) {
      echo "  <TR>\n    <TD><B>".++$i.".</B></TD>\n";
      echo "    <TD>".$sql->JMENO."</TD>\n";
      echo "    <TD>".$sql->VYROBCE."</TD>\n";
      echo "    <TD>&nbsp;</TD>\n";
      echo "    <TD>&nbsp;</TD>\n  </TR>";
  }
  ibase_close($spojeni);
?>

When the script finishes, connection will stay opened. I also tried to call ibase_close without parametrs but with the same result. I found this because my Interbase server crashes after opening the page 32 times and thus making 32 connections - I didn't figure out yet why 32, but it might be because of some IB setting. It's probably not fault of PHP. 

When I connect over ODBC, everything is going fine. Error is probably in php-interbase.dll.

I am running PHP 4.0.2 on PWS 4.0 on Win98. My Interbase server is WI-V6.0.0.627

If you need more info - PHPInfo() could be found on maschina.buk.cvut.cz/info.php - the computer doesn't run all the time, but most of day it does.

Thanx, Jan Antos.
P.S. otherwise, PHP is great, many thanks to all, who develop it!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-27 23:20 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-12-07 11:45 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC