Error in the variable name.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293620 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yago Ferrer 2010-01-16 15:41:58 +00:00
parent 5aaa6a4f54
commit dff28894d8

View file

@ -60,8 +60,8 @@ $xpm = imagecreatefromxpm('./example.xpm');
// PHP has no support for writing xpm images
// so in this case we save the image as a
// jpeg file with 100% quality
imagejpeg($im, './example.jpg', 100);
imagedestroy($im);
imagejpeg($xpm, './example.jpg', 100);
imagedestroy($xpm);
?>
]]>
</programlisting>