php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56248 imagick-0.9.11/examples/resize.php hangs
Submitted: 2004-12-16 14:22 UTC Modified: 2013-01-06 16:29 UTC
From: raavo at hansahouse dot com Assigned: tyrael (profile)
Status: Closed Package: imagick (PECL)
PHP Version: Irrelevant OS: redhat fedora core 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: raavo at hansahouse dot com
New email:
PHP Version: OS:

 

 [2004-12-16 14:22 UTC] raavo at hansahouse dot com
Description:
------------
if ( !imagick_resize( $handle, 700, 700, IMAGICK_FILTER_UNKNOWN, 0, "200+200!" ) )

This causes our custom php 5.0.2 to hang. To correct this error, you should use it without exclamation mark in the last part:

if ( !imagick_resize( $handle, 700, 700, IMAGICK_FILTER_UNKNOWN, 0, "200+200" ) )


Reproduce code:
---------------
if ( !imagick_resize( $handle, 700, 700, IMAGICK_FILTER_UNKNOWN, 0, "200+200!" ) )

Expected result:
----------------
image resize without php hang

Actual result:
--------------
php hangs conserving memory and cpu.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-06 16:29 UTC] tyrael@php.net
-Status: Open +Status: Closed -Package: PECL bug system +Package: imagick -Assigned To: +Assigned To: tyrael
 [2013-01-06 16:29 UTC] tyrael@php.net
most of the examples were removed in http://svn.php.net/viewvc?
view=revision&revision=233871 so this is "fixed".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 06:01:29 2025 UTC