Yes we did.
Andi
At 07:40 PM 8/27/2002 +0000, Marcus B�rger wrote:
>helly Tue Aug 27 15:40:56 2002 EDT
>
> Modified files:
> /php4/ext/gd gd.c
> Log:
> php_error_docref
>
> BUT didn't we decide to disable those functions when not supported
> instead of displaying an error?
>
>
>Index: php4/ext/gd/gd.c
>diff -u php4/ext/gd/gd.c:1.208 php4/ext/gd/gd.c:1.209
>--- php4/ext/gd/gd.c:1.208 Fri Aug 23 13:53:03 2002
>+++ php4/ext/gd/gd.c Tue Aug 27 15:40:55 2002
>@@ -18,7 +18,7 @@
> +----------------------------------------------------------------------+
> */
>
>-/* $Id: gd.c,v 1.208 2002/08/23 17:53:03 rasmus Exp $ */
>+/* $Id: gd.c,v 1.209 2002/08/27 19:40:55 helly Exp $ */
>
> /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
> Cold Spring Harbor Labs. */
>@@ -2700,7 +2700,7 @@
>
> #if !HAVE_GD_STRINGFTEX
> if (extended) {
>- zend_error(E_WARNING, "%s(): gdImageStringFTEx not
>supported in this PHP build", get_active_function_name(TSRMLS_C));
>+ php_error_docref(NULL TSRMLS_CC, E_WARNING,
>"gdImageStringFTEx not supported in this PHP build");
> RETURN_FALSE;
> }
> #endif
>@@ -3440,7 +3440,7 @@
> case PHP_GDIMG_TYPE_GIF:
> im_org = gdImageCreateFromGif (org);
> if (im_org == NULL) {
>- php_error_docref(NULL TSRMLS_CC,
>E_WARNING, "%s(): Unable to open '%s' Not a valid GIF file", fn_dest);
>+ php_error_docref(NULL TSRMLS_CC,
>E_WARNING, "Unable to open '%s' Not a valid GIF file", fn_dest);
> RETURN_FALSE;
> }
> break;
>
>
>
>--
>PHP CVS Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php