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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC