|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-02-08 08:10 UTC] ian dot tyndall at dataconversions dot biz
Description: ------------ Using pingImageFile produces unexpected results. My specs: ImageMagick version: ImageMagick 6.3.7 01/11/08 Q16 PHP version: 5.25 Windows version: XP 32 bit Apache version: 2.2.6 Imagick version: 2.1.0RC3 Reproduce code: --------------- <?php error_reporting(E_ALL); //$file = 'http://www.imagemagick.org/image/script.png'; $file = 'mast.jpg'; $im = new Imagick(); if(($fh = fopen($file,'r')) === FALSE){ die('Failed to open file for reading!'); } $im->pingImageFile($fh); var_dump($im->getImageGeometry()); ?> Expected result: ---------------- The output of getImageGeometry Actual result: -------------- tested with jpg,gif,png - Local File (same directory as the script) : cli - crashes cli apache - crashes apache, error log entry: Parent: child process exited with status 3221225477 -- Restarting Remote File: cli & apache - PHP Fatal error: Uncaught exception 'ImagickException' with message 'Can not process empty wand' in C:\\dev\\RT-gallerymgr\\public_html\\magick.php:10\nStack trace:\n#0 C:\\dev\\RT-gallerymgr\\public_html\\magick.php(10): Imagick->getimagegeometry()\n#1 {main}\n thrown in C:\\dev\\RT-gallerymgr\\public_html\\magick.php on line 10 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
Can you clarify this for me please, the bug you are reporting is purely to do with local files? But the build I provided is not working? Mikko's Build Local File Remote File Apache Dies Works CLI Dies Works My Build Local File Remote File Apache Dies Dies CLI Works Dies If that's not correct can you tell me which one is experiencing the problem.Clarification: Mikko's Build Local File Remote File Apache Dies Dies CLI Dies Dies Your Build Local File Remote File Apache Dies Dies CLI Works Dies