From:             fumble1 at web dot de
Operating system: Windows XP (Home Edition)
PHP version:      5.2.3
PHP Bug Type:     GD related
Bug description:  imagegrabscreen() returns corrupted GD resource

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 couldn’t be deleted.

-- 
Edit bug report at http://bugs.php.net/?id=42062&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42062&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42062&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42062&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42062&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42062&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42062&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42062&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42062&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42062&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42062&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42062&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42062&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42062&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42062&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42062&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42062&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42062&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42062&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42062&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42062&r=mysqlcfg

Reply via email to