Repository navigation
Bootstrap: ext/gd module skeleton — imagecreate() Error stub (#7407) - #7479
Merged
Merged
Conversation
Registers gd extension symbols so function_exists() probes succeed and calls throw catchable Error pointing to #3496 until full GD parity lands. Co-authored-by: Cursor <cursoragent@cursor.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ext/gd/module skeleton following the zip (Bootstrap: ext/zip/ module skeleton — register ZipArchive for self-host (M4) #5869) / xml (Bootstrap: ext/xml module skeleton — xml_parser_create() must Error cleanly until #3494 #7406) patternimagecreate()/imagecreatetruecolor()stubs that throw catchableErrorreferencing Stdlib: ext/gd — imagecreate / imagepng baseline (ext/gd/gd.c parity) #3496GdImagebuiltin class placeholder and load module fromlib/Runtime.php.phptand unit test (@group gd_skeleton)Closes #7407
php-src reference
ext/gd/gd.c—PHP_FUNCTION(imagecreate), module initext/gd/php_gd.h— GD module registrationVerification
Output:
PHP-in-PHP
Stubs live entirely in
ext/gd/*.php; no newruntime/*.clogic.Made with Cursor