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

From: Date: Sun, 29 Dec 2019 12:17:16 +0000
Subject: Doc #79036 [Ver->Csd]: PIXEL_INTEGER constant undefined
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17169@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: Verified +Status: Closed Type: Documentation Problem Package: imagick Operating System: Windows 10 PHP Version: 7.3.13 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2019-12-29 12:16:44] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=348726 Log: Fix #79036: PIXEL_INTEGER constant undefined ------------------------------------------------------------------------ [2019-12-27 09:34:41] cmb@php.net 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> ------------------------------------------------------------------------ [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 (#17169) next »