diff options
| author | Marcus Boerger <helly@php.net> | 2002-08-27 19:40:55 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-08-27 19:40:55 +0000 |
| commit | d1b56bf8106ca67e893c20d23263094797a2bdd5 (patch) | |
| tree | 3b5a55ac1055bcb11cb66fa14b610fa103daaff6 | |
| parent | 965ecdb3a6c07fa943a82eade0adf17e4031d05d (diff) | |
| download | php-git-d1b56bf8106ca67e893c20d23263094797a2bdd5.tar.gz | |
php_error_docref
BUT didn't we decide to disable those functions when not supported
instead of displaying an error?
| -rw-r--r-- | ext/gd/gd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index a07cc31c94..f443161a9b 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2700,7 +2700,7 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int #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 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) 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; |
