-
Notifications
You must be signed in to change notification settings - Fork 7.9k
checkdnsrr/dns_check_record works in CLI but not in mod_php on macOS #18548
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
Comments
Adding further details to help narrow down issue Works as expected on ProductName: macOS PHP 8.4.2 (cli) (built: Dec 17 2024 15:31:31) (NTS) bool(true) Work on CLI using php -r as well as script run using php cli |
I can confirm it works as expected on my setup, too.
Apple M4 Pro did you make sure |
Thanks for the tests @Suv-P and @staabm . Can you test on Script (both CLI and
|
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code:
Resulted in this output:
But I expected this output instead:
3v4l link: https://3v4l.org/mchKq
3v4l also seems unable to get "true" out of this. However, this works fine on my machine:
/opt/homebrew/bin/php -r '$result = checkdnsrr("google.com", "A"); var_dump($result);'
My Rocky 6 production server (yes we're upgrading) also gets
true
for this code, even in mod_php.I initially spotted this behavior in 7.4, but verified it's present on 8.4 as well.
PHP Version
Here's the top of the mod_php phpinfo() output:
PHP Version 8.4.7
Operating System
macOS Sequoia 15.4.1 on ARM (Apple M3 Pro)
The text was updated successfully, but these errors were encountered: