Bug #49250 [Asn->Fbk]: issue with ImageSetTile when image hander goes out of scope

From: Date: Sat, 16 Jul 2016 01:56:30 +0000
Subject: Bug #49250 [Asn->Fbk]: issue with ImageSetTile when image hander goes out of scope
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202362@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49250&edit=1 ID: 49250 Updated by: cmb@php.net Reported by: pookey at pookey dot co dot uk Summary: issue with ImageSetTile when image hander goes out of scope -Status: Assigned +Status: Feedback Type: Bug Package: GD related Operating System: * PHP Version: 5.3.0 Assigned To: pajoye Block user comment: N Private report: N New Comment: > author is very lazy, no reproduction code I'm afraid. I'm also very lazy, so no bugfix, I'm afraid. ;-) Please provide a minimal reproduce script. Previous Comments: ------------------------------------------------------------------------ [2009-08-14 13:25:02] pookey at pookey dot co dot uk Description: ------------ here's a method in an object: public function setTilePath($path) { $bgimage = imageCreateFromPNG($path); ImageSetTile($this->imgHdl, $bgimage); } that tile is used elsewhere in a different method later in 5.2, this works. in 5.3, it only works if I amend it to be: public function setTilePath($path) { $this->bgimage = imageCreateFromPNG($path); ImageSetTile($this->imgHdl, $this->bgimage); } I spoke briefly about this with Pierre online, I'm pookey on freenode if anyone wants to talk to me about it. Reproduce code: --------------- author is very lazy, no reproduction code I'm afraid. Expected result: ---------------- I expect it to work despite going out of scope Actual result: -------------- It doesn't work, broken, fail, no image, unhappy coder. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=49250&edit=1

« previous php.bugs (#202362) next »