#42062 [Opn->Bgs]: imagegrabscreen() returns corrupted GD resource
| From: | pajoye@php.net | Date: | Sat, 21 Jul 2007 19:06:31 +0000 |
| Subject: | #42062 [Opn->Bgs]: imagegrabscreen() returns corrupted GD resource | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115287@lists.php.net to get a copy of this message | ||
ID: 42062
Updated by: pajoye@php.net
Reported By: fumble1 at web dot de
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Windows XP (Home Edition)
PHP Version: 5.2.3
-Assigned To:
+Assigned To: pajoye
New Comment:
"Fatal error: Allowed memory size of 8388608 bytes exhausted"
Increase your memory limit.
Previous Comments:
------------------------------------------------------------------------
[2007-07-21 19:01:45] fumble1 at web dot de
Description:
------------
imagegrabscreen() returns a corrupted GD resource, which causes
imagepng() to bail out.
Reproduce code:
---------------
<?php
$im = imagegrabscreen();
imagepng($im, 'screenshot.png');
?>
Expected result:
----------------
A screenshot being created in the working dir or an error message from
imagegrabscreen().
Actual result:
--------------
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 3840 bytes) in __FILE__ on line 3" (imagepng()) and an empty
PNG-file that httpd.exe kept open, so it couldnt be deleted.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42062&edit=1