ID: 42062 User updated by: fumble1 at web dot de Reported By: fumble1 at web dot de -Status: Feedback +Status: Open Bug Type: GD related -Operating System: Windows XP (Home Edition) +Operating System: Windows XP PHP Version: 5.2.3 Assigned To: pajoye New Comment:
pajoye> "Where do you run PHP, in IIS/Apache?" Apache, right. pajoye> "To solve this, goto the computers services find your service, goto properties, select logon and check the box that allows the service to interact with the desktop." That worked, thank you. Do I have to open a new "ticket" on > "that "file-cant-be-deleted-'cause-its-used-by-another-process" thingy [...] caused by the imageoutput-functions failing on memory_limit" or will that do? Previous Comments: ------------------------------------------------------------------------ [2007-07-22 13:42:26] [EMAIL PROTECTED] "That got me an all-black PNG the size of my screen, just to note that." Where do you run PHP, in IIS/Apache? The blank screen is often due to apache or what ever php is running in not having permission to interact with the desktop. To solve this, goto the computers services find your service, goto properties, select logon and check the box that allows the service to interact with the desktop. ------------------------------------------------------------------------ [2007-07-22 12:59:56] fumble1 at web dot de Guess I was on the wrong track... that "file-cant-be-deleted-'cause-its-used-by-another-process" thingy is caused by the imageoutput-functions failing on memory_limit. Sorry for accusing imagegrabscreen(). pajoye> "Increase your memory limit." That got me an all-black PNG the size of my screen, just to note that. ------------------------------------------------------------------------ [2007-07-21 19:25:09] [EMAIL PROTECTED] Thanks to Derick, I miss the "can't be deleted" part. ------------------------------------------------------------------------ [2007-07-21 19:06:30] [EMAIL PROTECTED] "Fatal error: Allowed memory size of 8388608 bytes exhausted" Increase your memory limit. ------------------------------------------------------------------------ [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
