crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.34k stars 233 forks source link

adding qdbm handler for dba extension #394

Closed tricarte closed 7 months ago

tricarte commented 8 months ago

Ubuntu 22.04 php8.3-dba package lists the available handlers like this: (Of course, this package installs other handlers as dependencies.)

$(command -v php) -r 'print_r(dba_handlers());'
Array
(
    [0] => cdb
    [1] => cdb_make
    [2] => db4
    [3] => inifile
    [4] => flatfile
    [5] => qdbm
    [6] => lmdb
)

But my static version of php which is compiled with dba extension lists these handlers only:

/path/to/static/php -r 'print_r(dba_handlers());'
Array
(
    [0] => cdb
    [1] => cdb_make
    [2] => inifile
    [3] => flatfile
)

Specifically, I need the qdbm handler. I tried appending --with-libs=qdbm, --with-libs=libqdbm to spc build command installing the qdbm development files from the package manager, using --with-suggested-libs but with no success.

crazywhalecc commented 7 months ago

Implemented qdbm. Now you can use --with-libs=qdbm or --with-suggested-libs to enable qdbm support.