ID:               42062
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fumble1 at web dot de
 Status:           Assigned
 Bug Type:         GD related
 Operating System: Windows XP
 PHP Version:      5.2.3
 Assigned To:      pajoye
 New Comment:

Thanks to Dmitry for the quick debug, here is the explanation:

php_image_output_ctx() does fopen(), then memory overflow occurs that
does longjump, so corresponding fclose() is never called.

A fix will be done as soon as possible, I hope I can manage to do it
for the upcoming 5.2.4.


Previous Comments:
------------------------------------------------------------------------

[2007-07-22 14:27:58] [EMAIL PROTECTED]

> Do I have to open a new "ticket"

This one is enough. Not sure if it comes from gd or the php stream.

The black image is not a bug.

------------------------------------------------------------------------

[2007-07-22 14:16:55] fumble1 at web dot de

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-can’t-be-deleted-'cause-it’s-used-by-another-process" thingy
[...] caused by the imageoutput-functions failing on memory_limit"
or will that do?

------------------------------------------------------------------------

[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-can’t-be-deleted-'cause-it’s-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.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42062

-- 
Edit this bug report at http://bugs.php.net/?id=42062&edit=1

Reply via email to