Bug->Doc #79036 [Opn->Ver]: PIXEL_INTEGER constant undefined

From: Date: Fri, 27 Dec 2019 09:34:41 +0000
Subject: Bug->Doc #79036 [Opn->Ver]: PIXEL_INTEGER constant undefined
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17168@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79036&edit=1 ID: 79036 Updated by: cmb@php.net Reported by: gajowy at agzeta dot pl Summary: PIXEL_INTEGER constant undefined -Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem Package: imagick Operating System: Windows 10 PHP Version: 7.3.13 Block user comment: N Private report: N New Comment: PIXEL_INTEGER is only defined for ImageMagick < 7[1]. Changing to documentation issue. [1] <https://github.com/Imagick/imagick/blob/060c34ac7e7600ca8443059cc6104f80e8c7ef13/imagick_helpers.c#L1391> Previous Comments: ------------------------------------------------------------------------ [2019-12-26 21:35:06] geekcom@php.net Same error on Uuntu 18.04 ------------------------------------------------------------------------ [2019-12-26 21:12:28] geekcom@php.net Tested in Ubuntu, i'll test in Windows 10 as reported. ------------------------------------------------------------------------ [2019-12-26 18:04:56] gajowy at agzeta dot pl Description: ------------ Error appear when trying to use Imagick PIXEL_INTEGER constant. Tested with: PHP 7.3.13 (cli) (built: Dec 17 2019 13:16:21) ( NTS MSVC15 (Visual C++ 2017) x64 ) Imagick: 1799 ImageMagick 7.0.7-11 Q16 x64 2017-11-23 http://www.imagemagick.org However it DOES work with: PHP 7.1.33 (cli) (built: Oct 23 2019 09:22:42) ( NTS MSVC14 (Visual C++ 2015) x64 ) Imagick: 1683 ImageMagick 6.9.3-7 Q16 x64 2016-03-27 http://www.imagemagick.org Test script: --------------- $var = imagick::PIXEL_INTEGER; Expected result: ---------------- Constant is defined. Actual result: -------------- PHP Fatal error: Uncaught Error: Undefined class constant 'PIXEL_INTEGER' in... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79036&edit=1

« previous php.doc.bugs (#17168) next »