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

From: Date: Sun, 24 Jul 2016 04:22:22 +0000
Subject: Bug #49250 [Fbk->NoF]: issue with ImageSetTile when image hander goes out of scope
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202548@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: php-bugs@lists.php.net Reported by: pookey at pookey dot co dot uk Summary: issue with ImageSetTile when image hander goes out of scope -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: * PHP Version: 5.3.0 Assigned To: pajoye Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-07-16 01:56:30] cmb@php.net > 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. ------------------------------------------------------------------------ [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 (#202548) next »