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

PHP 8.2.0 Windows release #575

Open
tmb-github opened this issue Dec 21, 2022 · 14 comments
Open

PHP 8.2.0 Windows release #575

tmb-github opened this issue Dec 21, 2022 · 14 comments

Comments

@tmb-github
Copy link

...and we need a corresponding Imagick release. Is one in the works? Just checking.

@Danack
Copy link
Collaborator

Danack commented Dec 21, 2022

PHP 8.3.0 is also released....however I'm not aware of any BC breaks that require a new version of Imagick.

@tmb-github
Copy link
Author

tmb-github commented Dec 22, 2022

@Danack Not true...PHP 8.2.0 was released just a few days ago on 8 December 2022. PHP 8.3.0 is at least a year off. See https://www.php.net/

When I run the new PHP in XAMPP for Windows, I receive the same kind of error I received a year ago at this time when attempting to use Imagick with PHP 8.2.0 before the new version of Imagick was compiled. The error is:

[22-Dec-2022 00:10:13 UTC] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0

Imagick needs to be compiled against the new PHP, apparently. Please advise, and many thanks for your help.

@Danack
Copy link
Collaborator

Danack commented Dec 22, 2022

Sorry, I appear to have had a brainfart.

I don't actually make the builds for Imagick on Windows. The code does work against PHP 8.2.0 (and against master which will eventually be PHP 8.3.0)

As per #573 (comment) apparently the box that used to make the windows builds is dead, and hasn't been replaced. I will attempt to chase people who might be working on it.

@whiteCosmic
Copy link

@Danack @Danack
I get the same error, using PHP 8.2.0 in XAMPP for Windows.
Looked for imagick version that is compatible with php 8.2.
on peck.php.net I could only find imagick 3.7.0 which is compatible to php 7.4, 8.0 and 8.1.

Can you please let me know if and how can I get the compatible version for php 8.2?

@williamdes
Copy link

/tmp/autopkgtest-lxc.0guk5e6e/downtmp/build.IKf/src/imagick-3.7.0/tests/243_Tutorial_svgExample_basic.phpt
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@
-Ok
+Fatal error: Uncaught ImagickException: no decode delegate for this 
image format `SVG' @ error/blob.c/BlobToImage/363 in Standard input code:43
+Stack trace:
+#0 Standard input code(43): Imagick->readImageBlob()
+#1 Standard input code(49): svgExample()
+#2 {main}
+  thrown in Standard input code on line 43

This is probably also related to php 8.2
https://bugs.debian.org/1028976

@Danack Danack changed the title PHP 8.2.0 is released PHP 8.2.0 Windows release Jan 24, 2023
@Danack
Copy link
Collaborator

Danack commented Jan 24, 2023

@williamdes Nope. This issue is about the box at windows.php.net not having up-to-date builds. I have never provided builds for Windows.

The code (afaik) works fine on PHP 8.2.

+Fatal error: Uncaught ImagickException: no decode delegate for this
image format `SVG' @ error/blob.c/BlobToImage/363 in Standard input code:43

For whatever reason, that system was not compiled with SVG support.

@williamdes
Copy link

Thank you for this feedback, I will forward it

@fedot199614
Copy link

@Danack Not true...PHP 8.2.0 was released just a few days ago on 8 December 2022. PHP 8.3.0 is at least a year off. See https://www.php.net/

When I run the new PHP in XAMPP for Windows, I receive the same kind of error I received a year ago at this time when attempting to use Imagick with PHP 8.2.0 before the new version of Imagick was compiled. The error is:

[22-Dec-2022 00:10:13 UTC] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0

Imagick needs to be compiled against the new PHP, apparently. Please advise, and many thanks for your help.

the same issue, any updates for this?

@kamil-karkus
Copy link

I'm not sure if I did something wrong but on 8.2 and latest commit I've got this warning:

PHP Warning:  Imagick::__toString() implemented without string return type in Unknown on line 0

@ArthurPatriot
Copy link

#573 (comment)

@Rentner2
Copy link

@Danack Not true...PHP 8.2.0 was released just a few days ago on 8 December 2022. PHP 8.3.0 is at least a year off. See https://www.php.net/
When I run the new PHP in XAMPP for Windows, I receive the same kind of error I received a year ago at this time when attempting to use Imagick with PHP 8.2.0 before the new version of Imagick was compiled. The error is:

[22-Dec-2022 00:10:13 UTC] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0

Imagick needs to be compiled against the new PHP, apparently. Please advise, and many thanks for your help.

the same issue, any updates for this?

me too

@jamesjohnmcguire
Copy link

Perhaps this needs to be a separate issue, but are there any specific build / make scripts checked in, that people can use to roll their own, if necessary?

@ArthurPatriot
Copy link

@ArthurPatriot
Copy link

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

No branches or pull requests

9 participants