Skip to content
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

imagefilledpolygon example uses deprecated parameter #4387

Closed
ChrisHSandN opened this issue Jan 14, 2025 · 1 comment · Fixed by #4388
Closed

imagefilledpolygon example uses deprecated parameter #4387

ChrisHSandN opened this issue Jan 14, 2025 · 1 comment · Fixed by #4388

Comments

@ChrisHSandN
Copy link

ChrisHSandN commented Jan 14, 2025

From manual page: https://php.net/function.imagefilledpolygon
Edit: & https://www.php.net/manual/en/function.imageopenpolygon.php & https://www.php.net/manual/en/function.imagepolygon.php

The example is using the num_points parameter (which was deprecated in PHP 8.1)

image

Also the Run Code button on the GD pages results in:

Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in php-wasm run script:13
Stack trace:
#0 {main}
thrown in php-wasm run script on line 13

image

@sy-records
Copy link
Member

Thanks for your feedback, I fixed the example error in #4388.

Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in php-wasm

it's done through WASM which is limited in what it can do, PHP-on-WASM is even more limited in what it supports. see #4353

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 a pull request may close this issue.

2 participants