php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71339 exportImagePixels resets browser
Submitted: 2016-01-11 17:15 UTC Modified: 2016-01-13 16:46 UTC
From: lee dot traynor at skeptic dot de Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 7.0.2 OS: Windows XP/7/8/10
Private report: No CVE-ID: None
 [2016-01-11 17:15 UTC] lee dot traynor at skeptic dot de
Description:
------------
---
From manual page: http://www.php.net/imagick.exportimagepixels
---
When trying to extract valid pixel values with exportImagePixels on a valid imagick object the function fails and resets the browser.

Test script:
---------------
$im = new Imagick (realpath("pathto/file.png");
$pixel = $im->exportImagePixels (0, 0, 1, 1, "RGB", imagick::PIXEL_FLOAT);
//fails also with other constants

Actual result:
--------------
An array should be returned but none is and the browser is reset.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-11 23:41 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2016-01-11 23:41 UTC] danack@php.net
Please can you say which version of Imagick you are using. There was an issue fixed in 3.4.0RC1.

If you're still seeing errors in a version after that one, please can you run the code through the CLI to get more information. "resets the browser" does not provide much info.
 [2016-01-12 16:57 UTC] lee dot traynor at skeptic dot de
-Status: Feedback +Status: Open
 [2016-01-12 16:57 UTC] lee dot traynor at skeptic dot de
Some further technical details:
Running under Apache/2.4.17 (Win64) PHP/7.0.0, imagick module version 	3.4.0RC3
, Imagick compiled with ImageMagick version 	ImageMagick 6.9.2-0 Q16 x64 2015-09-10

On the CLI a window pops up and says the "CLI has stopped working". Apache error.log contains entries like this:
AH00428: Parent: child process 2604 exited with status 255 -- Restarting.

exportImagePixels works on this system:
Apache/2.2.22 (Win32) PHP/5.4.45, imagick module version 	3.1.2, ImageMagick 6.6.2-10 2010-06-29 Q16
 [2016-01-12 17:24 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2016-01-12 17:24 UTC] danack@php.net
Please could you test if the problem still exists in 3.4.0RC5, which was released last night.

That released fixed an issue for Window 32bit for any method that contains integer parameters.....which exportImagePixels happens to have.
 [2016-01-13 16:46 UTC] lee dot traynor at skeptic dot de
-Status: Feedback +Status: Closed
 [2016-01-13 16:46 UTC] lee dot traynor at skeptic dot de
Apparently OK now, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 00:01:31 2024 UTC