php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59131 Crash PHP on windows
Submitted: 2010-03-28 07:58 UTC Modified: 2013-02-18 00:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: zhangsilly at gmail dot com Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.2.11 OS: Windows XP
Private report: No CVE-ID: None
 [2010-03-28 07:58 UTC] zhangsilly at gmail dot com
Description:
------------
I compile both the 2.30 stable and imagick-3.0.0RC1, the 
have the same problem.

<?php
$img	= new Imagick('./ych.jpg');
?>

Execute from browser, it will crash the apache process.
Execute from command line, it will crash the php.

I compiled with Visual Studio 2005, use ImageMagick-6.6.0 
for Windows.

Debug with Visual Studio , it shows Crash at(2.30 stable):
file:imagick_read.c 
line: 260 (status = MagickReadImageFile(intern->magick_wand, 
fp);)


Reproduce code:
---------------
<?php
$img	= new Imagick('./ych.jpg');
?>

Expected result:
----------------
it should be ok

Actual result:
--------------
crashed

Patches

ka (last revision 2012-02-24 09:07 UTC by karthik dot idct at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-04 00:26 UTC] pavel2002 at ngs dot ru
Same thing with imagick-3.0.1RC2 taken from your blog and PHP 5.3.3 for WinXP. Same example appliable.
 [2010-11-04 04:33 UTC] mkoppanen@php.net
Can you tell me what compiler your web server (if apache) and PHP are compiled with?
 [2010-11-04 14:39 UTC] pavel2002 at ngs dot ru
Sorry, can't find the way to determine compilers version. Please, give me some advices how to find it and I'll give you this info. Trouble has gone when I install ImageMagick 6.6.4.1 Thanks a lot to Chris from your blog, his advice help me. (See last comments to your post).
 [2010-12-25 17:04 UTC] petea123 at gmail dot com
Hi. I have the same problem.
My configuration:
PHP 5.3.5(dev) VC9
Apache 2.2
IMagick 3.0.1 (stable)
 [2011-01-22 05:46 UTC] letmegetone at hotmail dot com
I tried this version of imagick:
http://valokuva.org/outside-blog-content/imagick-windows-builds/080709/php_imagick_st-Q16.dll

It can work well with php 5.2.x.
Each time I tried the version of 5.3.x, the php crashed.
 [2011-01-22 10:25 UTC] mkoppanen@php.net
The build referred in the last comment is against PHP 5.2. Newer ones are here: http://valokuva.org/builds/
 [2011-02-26 03:08 UTC] tk1 at dev dot freshsite dot pl
At the end of my page you can find simple instructions how to get to know which compiler was used to create my extension. You can use this to check apache and php also. 

http://dev.freshsite.pl/php-accelerators.html

Please let us know what versions causes the problem.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 03:01:28 2024 UTC