From:             
Operating system: Windows 7 x64
PHP version:      5.3.2
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Loading image from non-system drive crashes PHP

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 bug report at http://bugs.php.net/bug.php?id=51913&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51913&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51913&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51913&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51913&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51913&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51913&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51913&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51913&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51913&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51913&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51913&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51913&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51913&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51913&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51913&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51913&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51913&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51913&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51913&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51913&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51913&r=mysqlcfg

Reply via email to