From: Eli Schwartz <eschwartz@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to handle Firebird with PHP now
Date: Sun, 23 Mar 2025 04:05:55 -0400 [thread overview]
Message-ID: <5c73c797-6588-4114-b826-186096b87093@gentoo.org> (raw)
In-Reply-To: <f713d2a6-9203-8d00-da67-1bc7bd85b78a@hanft.de>
[-- Attachment #1.1: Type: text/plain, Size: 1367 bytes --]
On 3/23/25 3:34 AM, Matthias Hanft wrote:
> I wrote:
>>
>> To compile PHP with Firebird support, I have the line
>> -firebird
>> in /etc/portage/profile/use.mask because the Firebird USE flag
>> of PHP was masked somewhen.
>
> While working with the manually installed Firebird 5.0 and the
> unmasked "firebird" USE flag @ PHP, now here's the next problem:
>
> They removed the "firebird" USE flag from PHP!
>
> Now the PHP script
>
> $x = new PDO('firebird:dbname=...');
>
> leads to
>
> PHP Fatal error: Uncaught PDOException: could not find driver
>
> I already tried the PHP extension "php_8.2.0-interbase-3.0.1-linux-x64.so"
> from https://github.com/FirebirdSQL/php-firebird/releases but that leads to
>
> PHP Warning: Module "interbase" is already loaded
> PHP Fatal error: Uncaught PDOException: could not find driver
>
> On https://www.php.net/manual/en/ref.pdo-firebird.php it is mentioned
>
> "Use --with-pdo-firebird[=DIR] to install the PDO Firebird extension,
> where the optional [=DIR] is the Firebird base install directory."
> $ ./configure --with-pdo-firebird
>
> I'd really like to do that, but how?
Read the manpage for `man make.conf` and look for references to EXTRA_ECONF.
You will want to do this via package.env, obviously, not
/etc/portage/make.conf itself.
--
Eli Schwartz
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2025-03-23 8:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 19:07 [gentoo-user] How to handle Firebird with PHP now Matthias Hanft
2025-02-10 20:11 ` Michael
2025-02-11 9:09 ` Matthias Hanft
2025-02-11 10:02 ` Michael
2025-02-11 16:30 ` Matthias Hanft
2025-02-11 18:12 ` Michael Orlitzky
2025-02-14 12:47 ` Matthias Hanft
2025-02-15 3:11 ` Michael Orlitzky
2025-02-14 13:29 ` Viorel Munteanu
2025-03-23 7:34 ` Matthias Hanft
2025-03-23 8:05 ` Eli Schwartz [this message]
2025-03-23 11:10 ` Matthias Hanft
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c73c797-6588-4114-b826-186096b87093@gentoo.org \
--to=eschwartz@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox