note 118346 added to function.imagedestroy
| From: | ClaudeD. | Date: | Thu, 19 Nov 2015 14:35:58 +0000 |
| Subject: | note 118346 added to function.imagedestroy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204192@lists.php.net to get a copy of this message | ||
Caution should be observed with imagedestroy(); copying your reference variable over to another
variable will cause imagedestroy to destroy both at once.
Eg.:
$a = imagecreate(...);
$b = $a;
imagedestroy($a);
While you'd think $b still contains your image, it doesn't. Both $a and $b are destroyed.
----
Server IP: 72.52.91.14
Probable Submitter: 74.15.40.185
----
Manual Page -- http://php.net/manual/en/function.imagedestroy.php
Edit -- https://master.php.net/note/edit/118346
Del: integrated -- https://master.php.net/note/delete/118346/integrated
Del: useless -- https://master.php.net/note/delete/118346/useless
Del: bad code -- https://master.php.net/note/delete/118346/bad+code
Del: spam -- https://master.php.net/note/delete/118346/spam
Del: non-english -- https://master.php.net/note/delete/118346/non-english
Del: in docs -- https://master.php.net/note/delete/118346/in+docs
Del: other reasons-- https://master.php.net/note/delete/118346
Reject -- https://master.php.net/note/reject/118346
Search -- https://master.php.net/manage/user-notes.php