#36995 [Asn->Opn]: when imagepng() and friends fail there is no way to know why
| From: | tony2001@php.net | Date: | Tue, 01 Aug 2006 22:42:49 +0000 |
| Subject: | #36995 [Asn->Opn]: when imagepng() and friends fail there is no way to know why | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100204@lists.php.net to get a copy of this message | ||
ID: 36995
Updated by: tony2001@php.net
Reported By: tony2001@php.net
-Status: Assigned
+Status: Open
Bug Type: GD related
Operating System: Linux
PHP Version: 5CVS-2006-04-06 (CVS)
Assigned To: pajoye
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Tony requests, Tony adds.
Previous Comments:
------------------------------------------------------------------------
[2006-04-06 13:06:25] tony2001@php.net
Description:
------------
imagepng()/imagegif()/imagejpeg() function do not report the exact
reason why they failed to write to the file.
This makes it difficult to debug, as you know it fails, but it doesn't
say why.
Reproduce code:
---------------
<?php
$i=imagecreate(10,10);
imagepng($i, "/root/test.jpg");
?>
Expected result:
----------------
Warning: imagepng(): Unable to open '/root/test.jpg' for writing :
Permission denied in .. on line ..
Actual result:
--------------
Warning: imagepng(): Unable to open '/root/test.jpg' for writing in ..
on line ..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36995&edit=1