Skip to content

Fix extension_loaded('curl') phantom true before curl_init ships (#11627) - #11648

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-11627-extension-loaded-curl
Jun 25, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-11627-extension-loaded-curl

Conversation

@PurHur

@PurHur PurHur commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #11627

php-src reference

ext/standard/info.c — extension probe must match loadable modules

Verification

php bin/vm.php test/repro/maintainer_gap_extension_loaded_curl.php
# loaded=0 funcs=1 curl_init=LogicException

php bin/compile.php -l test/repro/maintainer_gap_extension_loaded_curl.php
# exit 0

./vendor/bin/phpunit test/unit/CurlModuleTest.php
# OK

Made with Cursor

).

Register ext/curl skeleton under standard like ext/intl (#11472) so
function_exists('curl_init') works but extension_loaded('curl') is false.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: extension_loaded('curl') true but curl_init() LogicException — phantom ext registration (ext/standard/info.c)

1 participant