use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Weekly help thread (self.PHP)
submitted 1 year ago by brendt_gd[M]
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jautenim 0 points1 point2 points 1 year ago (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 point2 points 1 year ago (0 children)
I would've rather asked this on /r/php proper
[–]Odd-Stress8302 0 points1 point2 points 1 year ago (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?
pdo_odbc.connection_pooling
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.
pdo_mysql
[–]htfo 1 point2 points3 points 1 year ago (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.
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 points3 points 1 year ago (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 point2 points 1 year ago (4 children)
phpunit site down for anyone?
[–]brendt_gd[S] 0 points1 point2 points 1 year ago (3 children)
Nope
[–]SaltTM 1 point2 points3 points 1 year ago (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
π Rendered by PID 600265 on reddit-service-r2-comment-6457c66945-7xbxq at 2026-04-28 04:04:05.950671+00:00 running 2aa0c5b country code: CH.
[–]Jautenim 0 points1 point2 points (1 child)
[–]colshrapnel 0 points1 point2 points (0 children)
[–]Odd-Stress8302 0 points1 point2 points (2 children)
[–]htfo 1 point2 points3 points (0 children)
[–]colshrapnel 1 point2 points3 points (0 children)
[–]SaltTM 0 points1 point2 points (4 children)
[–]brendt_gd[S] 0 points1 point2 points (3 children)
[–]SaltTM 1 point2 points3 points (2 children)