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

 ID:               51913
 Comment by:       sharkstudio at mail dot ru
 Reported by:      sharkstudio at mail dot ru
 Summary:          Loading image from non-system drive crashes PHP
 Status:           Open
 Type:             Bug
 Package:          Reproducible crash
 Operating System: Windows 7 x64
 PHP Version:      5.3.2

 New Comment:

Tried file_get_contents() 

works without any problem.


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to