]> granicus.if.org Git - php/commitdiff
Alert user if they're trying to use
authorMathieu Kooiman <mathieu@php.net>
Wed, 8 Nov 2000 16:08:42 +0000 (16:08 +0000)
committerMathieu Kooiman <mathieu@php.net>
Wed, 8 Nov 2000 16:08:42 +0000 (16:08 +0000)
ImageCreateFromString() with GD < 1.5..
Sorry, should've added this last commit.

ext/gd/gd.c

index 54c58eb45f1f244a7cd3f68cf7730b63b6bf57dc..7a150bcaf73155ecc1a787be781e30707e4195f5 100644 (file)
@@ -601,6 +601,8 @@ PHP_FUNCTION (imagecreatefromstring)
        }
 
        ZEND_REGISTER_RESOURCE(return_value, im, GDG (le_gd));
+#else
+       php_error(E_WARNING, "ImageCreateFromString: Only available with GD 1.5+");
 #endif
 }
 /* }}} */