From: Christoph M. Becker Date: Mon, 18 Jul 2016 22:46:24 +0000 (+0200) Subject: Merge branch 'PHP-5.6' into PHP-7.0 X-Git-Tag: php-7.1.0beta1~33^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d565d4bc1cab2d695863a51eb6f998405b76c147;p=php Merge branch 'PHP-5.6' into PHP-7.0 # Resolved conflicts: # ext/gd/gd.c --- d565d4bc1cab2d695863a51eb6f998405b76c147 diff --cc ext/gd/gd.c index a3b33fdef3,b843bda98d..b6fa6b9bb7 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@@ -61,8 -61,17 +61,11 @@@ static int le_gd, le_gd_font; -#if HAVE_LIBT1 -#include -static int le_ps_font, le_ps_enc; -static void php_free_ps_font(zend_rsrc_list_entry *rsrc TSRMLS_DC); -static void php_free_ps_enc(zend_rsrc_list_entry *rsrc TSRMLS_DC); -#endif #include + #ifndef HAVE_GD_BUNDLED + # include + #endif #include /* 1 Tiny font */ #include /* 2 Small font */ #include /* 3 Medium bold font */ @@@ -1020,8 -1100,21 +1023,20 @@@ static void php_free_gd_font(zend_resou */ void php_gd_error_method(int type, const char *format, va_list args) { - TSRMLS_FETCH(); - php_verror(NULL, "", type, format, args); + switch (type) { + case GD_DEBUG: + case GD_INFO: + case GD_NOTICE: + type = E_NOTICE; + break; + case GD_WARNING: + type = E_WARNING; + break; + default: + type = E_ERROR; + } + php_verror(NULL, "", type, format, args TSRMLS_CC); } /* }}} */ #endif