cvs: php4 /ext/gd gd.c
| From: | Mathieu Kooiman | Date: | Wed, 08 Nov 2000 16:08:42 +0000 |
| Subject: | cvs: php4 /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2527@lists.php.net to get a copy of this message | ||
mathieu Wed Nov 8 08:08:42 2000 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Alert user if they're trying to use
ImageCreateFromString() with GD < 1.5..
Sorry, should've added this last commit.
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.100 php4/ext/gd/gd.c:1.101
--- php4/ext/gd/gd.c:1.100 Wed Nov 8 06:56:09 2000
+++ php4/ext/gd/gd.c Wed Nov 8 08:08:42 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.100 2000/11/08 14:56:09 mathieu Exp $ */
+/* $Id: gd.c,v 1.101 2000/11/08 16:08:42 mathieu Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -601,6 +601,8 @@
}
ZEND_REGISTER_RESOURCE(return_value, im, GDG (le_gd));
+#else
+ php_error(E_WARNING, "ImageCreateFromString: Only available with GD 1.5+");
#endif
}
/* }}} */