Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Firebird PHP driver (replace EOL interbase extension) [CORE6035] #6285

Open
firebird-automations opened this issue Mar 22, 2019 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: christophe derenne (cdr60530)

I know you're not the php-interbase developpers
But ther is something very important you must know about this extension :

Juste read this little web page :
https://wiki.php.net/rfc/deprecate-and-remove-ext-interbase

Yes, what you read is real, it seems that php-interbase extension will be removed from php soon.

Do you know what it means ? : the end of native firebird driver for php.
I don't want to rewrite all my web sites with pdo. And i don't want to use mysql (beurk) or odbc (beurk beurk)
We cannot let them do that !

I dont't know what to do. So I thought I have to tell you, but don't you if this is the best place to.

@firebird-automations
Copy link
Collaborator Author

Commented by: Volker Rehn (vr2_s18)

Martin Köditz, member of the German Firebird-docs team and hoster of the German Firebird forum, has been working on a php7 update of the native php-Firebird driver since January 2019 and released a first test version just yesterday, in the German Firebird forum.

We are currently testing the new driver. Apparently Martin hasn't informed the php folks that he is the new maintainer. I have asked him to let them know before this derails further. As soon as we are happy with the new version I'm sure it can be made available to a wider audience on the Firebird web site.

Have you seen this: http://firebirdsql.org/en/news/revival-of-php-driver-development/ ? Anyone who needs this driver - make it possible. Funding, testing, spreading the word, whatever.

Regards, Volker

@firebird-automations
Copy link
Collaborator Author

Commented by: christophe derenne (cdr60530)

Thanks a lot to let us know that a team is working on this.
My heart feel better

@firebird-automations
Copy link
Collaborator Author

Commented by: Lester Caine (lsces)

The idea of a new version of the PHP driver is good news. It seems unlikely that we can stop the PHP developers retiring the interbase one to PECL but on the other hand it may be the kick that is needed.
There are a number of faults being reported in relation to the existing one, and Nikita Popov has kindly sorted the only one that I see on current buils. The main complaints are about Thread Safety but I'm not sure that is really the problem, and the latest RFC update claims many field types just crash, which I'm sure will be news to actual users.
There are currently 6 open bugs and one of them is simply a complaint that the fbird_* aliases are not documented :) Two I can recreate and a third I will check over tomorrow. Leaving a 'fork' problem from 2009 which I think is totally to be expected since I don't see how you can use a connection created in one thread and simply carry on using it in another at the same time?
The final bug has a patch but is the area I was asking about earlier.

What is probably more important is to get on top of PDO_firebird which is not being retired and so will be the default way of accessing Firebird in PHP8 ... In my book it hamstrings too much and has never been completed, but it also has a few outstanding bugs which need addressing.

@firebird-automations
Copy link
Collaborator Author

Commented by: Lester Caine (lsces)

Worth adding that ibase has been disabled in snapshot PHP builds on master
php/web-rmtools#7

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Modified the subject to better reflect the issue.

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: the end of firebird native driver on php is annouced !!! => Native Firebird PHP driver (replace EOL interbase extension)

@firebird-automations
Copy link
Collaborator Author

Commented by: christophe derenne (cdr60530)

So what's goiing on now ?
Do we have to rewrite all our developments with pdo-firebird ?
I'd like to be wrong

php-interbase uses a procedural syntax and pdo-firebird, a syntax in object, the work of migration will be pharaonic.

The risk is that developers under php abandon firebird while it is very sincerely one of the best free database engine (for current use) that exists if not the best.

@firebird-automations
Copy link
Collaborator Author

Commented by: @MartinKoeditz

No, I don't think we have to rewrite our codes to PDO syntax. We will keep a native driver.

There are two options:
1. We keep the "ibase" extension as it is and go on
2. We fork the "ibase" extension as an own PHP module and rename the functions from "ibase_<xyz>" to "firebird_<xyz>". So a simple search and replace would be enough.

I personally prefer option 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant