]> granicus.if.org Git - php/commitdiff
fix imagecreatefromwebp and imagewebp protos
authorRemi Collet <remi@php.net>
Mon, 24 Jun 2013 09:15:50 +0000 (11:15 +0200)
committerRemi Collet <remi@php.net>
Mon, 24 Jun 2013 09:15:50 +0000 (11:15 +0200)
ext/gd/gd.c

index 9bdedee71b869a5bbb69306800d783245c429c10..7fef56ed74175a1e0f17b96aa9ca9ae0a94bc9b2 100644 (file)
@@ -2478,8 +2478,8 @@ PHP_FUNCTION(imagecreatefrompng)
 #endif /* HAVE_GD_PNG */
 
 #ifdef HAVE_GD_WEBP
-/* {{{ proto resource imagecreatefrompng(string filename)
-   Create a new image from PNG file or URL */
+/* {{{ proto resource imagecreatefromwebp(string filename)
+   Create a new image from WEBP file or URL */
 PHP_FUNCTION(imagecreatefromwebp)
 {
        _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WEBP, "WEBP", gdImageCreateFromWebp, gdImageCreateFromWebpCtx);
@@ -2718,7 +2718,7 @@ PHP_FUNCTION(imagepng)
 
 #ifdef HAVE_GD_WEBP
 /* {{{ proto bool imagewebp(resource im [, string filename[, quality]] )
-   Output PNG image to browser or file */
+   Output WEBP image to browser or file */
 PHP_FUNCTION(imagewebp)
 {
        _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WEBP, "WEBP", gdImageWebpCtx);