note 69606 added to function.imagepng

From: Date: Tue, 12 Sep 2006 15:51:45 +0000
Subject: note 69606 added to function.imagepng
Groups: php.notes 
Request: Send a blank email to php-notes+get-117066@lists.php.net to get a copy of this message
In contradiction to the documentation, the second parameter *must* not be NULL (or the empty string '') in PHP 5.1.6 (and maybe earlier versions as well). So if you don't want the image to be written to a file, call imagepng with the first parameter only. Otherwise it will fail, but only generate a warning (which is very confusing). ---- Server IP: 212.124.37.9 Probable Submitter: 212.168.167.18 ---- Manual Page -- http://www.php.net/manual/en/function.imagepng.php Edit -- https://master.php.net/note/edit/69606 Del: integrated -- https://master.php.net/note/delete/69606/integrated Del: useless -- https://master.php.net/note/delete/69606/useless Del: bad code -- https://master.php.net/note/delete/69606/bad+code Del: spam -- https://master.php.net/note/delete/69606/spam Del: non-english -- https://master.php.net/note/delete/69606/non-english Del: in docs -- https://master.php.net/note/delete/69606/in+docs Del: other reasons-- https://master.php.net/note/delete/69606 Reject -- https://master.php.net/note/reject/69606 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117066) next »