# Bug #49955 can be closed

- Thread: https://externals.io/message/46629
- Original archive: https://news-web.php.net/php.internals/46629
- Started by marius adrian popa on 2010-01-11T13:44:56+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #46629 — marius adrian popa — 2010-01-11T13:44:56+00:00

URL: https://externals.io/message/46629#46629

Bug  #49955 http://bugs.php.net/bug.php?id=49955 can be closed , i
have tested with php 5.3 latest snapshot
and firebird is on a remote host
in fact i have tested with two remote hosts one with firebird 2.1 and
one with firebird 2.5
I guess 10000000 connections are enough to see if it's all ok
I got no error , it never reaches to die zone


cat 49955.php
<?
$user='SYSDBA';
$password='masterkey';
$database="192.168.0.1:/var/lib/firebird/2.5/data/employee.fdb";
for ($i = 1; $i <= 10000000; $i++) {
    echo $i;

$conFb = @ibase_pconnect($database, $user, $password)
         or die("Error when trying to connect!");
}
?>


also tested from apache the scripts dies only when it reaches max
execution time , as expected for default php is 30 seconds
lynx http://localhost/49955.php

php versions tested: 5.3.3 snapshot (cli) (built: Jan 11 2010 13:19:54)

and 5.3.1 rc2 (cli) (built: Nov  2 2009 17:22:21) + apache module

---

## #46637 — marius adrian popa — 2010-01-11T17:16:55+00:00

URL: https://externals.io/message/46629#46637 · In reply to: #46629

> Bug  #49955 http://bugs.php.net/bug.php?id=49955 can be closed , i
> have tested with php 5.3 latest snapshot
> and firebird is on a remote host
> in fact i have tested with two remote hosts one with firebird 2.1 and
> one with firebird 2.5
> I guess 10000000 connections are enough to see if it's all ok
> I got no error , it never reaches to die zone
>
>
> cat 49955.php
> <?
> $user='SYSDBA';
> $password='masterkey';
> $database="192.168.0.1:/var/lib/firebird/2.5/data/employee.fdb";
> for ($i = 1; $i <= 10000000; $i++) {
>    echo $i;
>
> $conFb = @ibase_pconnect($database, $user, $password)
>         or die("Error when trying to connect!");
> }
> ?>
>
>
> also tested from apache the scripts dies only when it reaches max
> execution time , as expected for default php is 30 seconds
> lynx http://localhost/49955.php
>
> php versions tested: 5.3.3 snapshot (cli) (built: Jan 11 2010 13:19:54)
>
> and 5.3.1 rc2 (cli) (built: Nov  2 2009 17:22:21) + apache module
>

I found it why it doesn't work on windows , seems that the php zip
contains an very old gds32.dll
that must be replaced with something that is stable from firebird
2.1.x kit or 2.5.x
I have added the comments to the bug how to make it work

---

## #46640 — Lester Caine — 2010-01-11T17:35:18+00:00

URL: https://externals.io/message/46629#46640 · In reply to: #46637

marius adrian popa wrote:
> 
> > […]
> 
> I found it why it doesn't work on windows , seems that the php zip
> contains an very old gds32.dll
> that must be replaced with something that is stable from firebird
> 2.1.x kit or 2.5.x
> I have added the comments to the bug how to make it work

Actually marius - it contains an INTERBASE client as it is an interbase 
extension. This was another reason for perhaps now switching to php_firebird, 
and using the fbird_xxx aliases as was planned from PHP5.0 days. The WINDOWS 
builds are supposed only to be made against the correct libraries, with the 
correct M$ compiler version, so building php_interbase against a firebird 
library breaks the rules anyway?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
