Bug #51913 [Fbk->Bgs]: Loading image from non-system drive crashes PHP

From: Date: Thu, 27 May 2010 01:24:47 +0000
Subject: Bug #51913 [Fbk->Bgs]: Loading image from non-system drive crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150860@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51913&edit=1

 ID:               51913
 Updated by:       pajoye@php.net
 Reported by:      sharkstudio at mail dot ru
 Summary:          Loading image from non-system drive crashes PHP
-Status:           Feedback
+Status:           Bogus
 Type:             Bug
 Package:          Reproducible crash
 Operating System: Windows 7 x64
 PHP Version:      5.3.2

 New Comment:

.


Previous Comments:
------------------------------------------------------------------------
[2010-05-27 02:22:28] sharkstudio at mail dot ru

Apparently it was a bug with imagick extension compiled in VC6. Updated
everything to VC9 version it solved problem.

------------------------------------------------------------------------
[2010-05-26 11:18:48] pajoye@php.net

Works just fine here. Also it should 'c:\\image.jpeg'. What are the
recoverable errors you get with gd? (which are not crashes btw)

------------------------------------------------------------------------
[2010-05-26 05:08:09] sharkstudio at mail dot ru

Tried file_get_contents() 
works without any problem.

------------------------------------------------------------------------
[2010-05-26 03:03:28] sharkstudio at mail dot ru

Description:
------------
My script that uses Imagick extension and has perfectly worked for a
couple of years crashes after update PHP 5.1.x on WinXP to PHP 5.3.2 on
Win7. 
I found that it crashes silently at the point where I am trying to use
image from my D: drive.
I easily reproduced the crash in a separate script with one line only:
<?php $im = new Imagick('D:\image.jpg');?>
If I change it to  <?php $im = new Imagick('C:\image.jpg');?> - it
works.

GD's imagecreatefromjpeg() crashes as well, but it troughs an error:
'imagecreatefromjpeg() JPEG library reports unrecoverable error' .

I tried to load the same image from C: drive and it works as it should.
I tried to do "fopen" from D: drive and it works.

The bug appears on Windows 7 environment only. The PHP installed on C:
drive.

P.S. sorry, if my English is not very clear.

Test script:
---------------
<?php $im = new imagecreatefromjpeg('D:\image.jpg'); // crashes?>
<?php $im = new imagecreatefromjpeg('C:\image.jpg'); // works?>


Expected result:
----------------
First line crashes.
Second line works.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51913&edit=1


Thread (5 messages)

« previous php.bugs (#150860) next »