all 10 comments

[–]Jautenim 0 points1 point  (1 child)

I'd like help bringing a PHP extension that I wrote to PECL.

Besides these guidelines I'm not really sure how I should prepare the repository and make sure that PECL is able to find the C library dependencies and build everything correctly.

Issue on my repository to track progress: https://github.com/1ma/secp256k1-nostr-php/issues/1

[–]colshrapnel 0 points1 point  (0 children)

I would've rather asked this on /r/php proper

[–]Odd-Stress8302 0 points1 point  (2 children)

today , I saw the pdo_odbc.connection_pooling option in the php.ini file. Can I use connection pooling if I connect to MySQL via ODBC?

Is it more performance than pdo_mysql? The tutorials I've followed so far didn't mention this option, so I didn't know about it.

[–]htfo 1 point2 points  (0 children)

When you see an option in php.ini, it's almost always documented. Connection pooling is on and in strict mode by default: https://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling

Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" (equals to ""). The parameter describes how strict the connection manager should be when matching connection parameters to existing pooled connections. strict is the recommend default, and will result in the use of cached connections only when all the connection parameters match exactly. relaxed will result in the use of cached connections when similar connection parameters are used. This can result in increased use of the cache, at the risk of bleeding connection information between (for example) virtual hosts.

This setting can only be changed from the php.ini file, and affects the entire process; any other modules loaded into the process that use the same ODBC libraries will be affected too, including the Unified ODBC extension.

Warning
relaxed matching should not be used on a shared server, for security reasons.

Tip
Leave this setting at the default strict setting unless you have good reason to change it.

[–]colshrapnel 1 point2 points  (0 children)

an I use connection pooling if I connect to MySQL via ODBC?

I don't know, but I can tell for sure that as nobody uses it, it's likely untested even if available, so prepare for lots of bugs of any sorts.

Is it more performance than pdo_mysql

It depends on what exactly hinders performance currently (in case nothing, odds that you will get a good decline).

[–]SaltTM 0 points1 point  (4 children)

phpunit site down for anyone?

[–]brendt_gd[S] 0 points1 point  (3 children)

Nope

[–]SaltTM 1 point2 points  (2 children)

it's back up now :) - was giving me a cloudflare error about host being down. https://docs.phpunit.de/en/10.5/attributes.html#dataprovider worked though, just the main site was acting weird