Skip to content

Commit bb369d7

Browse files
author
Rui Hirokawa
committed
- fixed configuration problem as shared extension for fdf. - fixed configuration problem as shared extension for gd with freetype1. - default output encoding of mbstring changed to pass to fix initialization problem.
1 parent f8159f4 commit bb369d7

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

ext/fdf/Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
LTLIBRARY_NAME = libfdf.la
33
LTLIBRARY_SOURCES = fdf.c
44
LTLIBRARY_SHARED_NAME = fdf.la
5+
LTLIBRARY_SHARED_LIBADD = $(FDFTK_SHARED_LIBADD)
56

67
include $(top_srcdir)/build/dynlib.mk

ext/gd/config.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ AC_DEFUN(PHP_GD_FREETYPE2,[
112112
PHP_ARG_WITH(freetype-dir, for freetype(2),
113113
[ --with-freetype-dir=DIR GD: Set the path to freetype2 install prefix.])
114114
115+
if test "$PHP_TTF" != "no"; then
116+
PHP_FREETYPE_DIR="no"
117+
fi
118+
115119
if test "$PHP_FREETYPE_DIR" != "no"; then
116120
for i in /usr /usr/local $PHP_FREETYPE_DIR; do
117121
if test -f "$i/include/freetype2/freetype/freetype.h"; then
@@ -169,6 +173,8 @@ AC_DEFUN(PHP_GD_TTSTR,[
169173
])
170174

171175
AC_DEFUN(PHP_GD_CHECK_VERSION,[
176+
save_LIBS="$LIBS"
177+
LIBS="$GD_SHARED_LIBADD $LIBS"
172178
AC_CHECK_LIB(gd, gdImageString16, [AC_DEFINE(HAVE_LIBGD13, 1, [ ])])
173179
AC_CHECK_LIB(gd, gdImagePaletteCopy, [AC_DEFINE(HAVE_LIBGD15, 1, [ ])])
174180
AC_CHECK_LIB(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])])
@@ -187,6 +193,7 @@ AC_DEFUN(PHP_GD_CHECK_VERSION,[
187193
AC_CHECK_LIB(gd, gdImageColorClosestHWB, [AC_DEFINE(HAVE_COLORCLOSESTHWB, 1, [ ])])
188194
AC_CHECK_LIB(gd, gdImageColorResolve, [AC_DEFINE(HAVE_GDIMAGECOLORRESOLVE, 1, [ ])])
189195
AC_CHECK_LIB(gd, gdImageGifCtx, [AC_DEFINE(HAVE_GD_GIF_CTX, 1, [ ])])
196+
LIBS=$save_LIBS
190197
])
191198

192199

@@ -201,6 +208,7 @@ if test "$PHP_GD" != "no"; then
201208
PHP_SUBST(GD_SHARED_LIBADD)
202209

203210
dnl Various checks for GD features
211+
PHP_SHLIB_SUFFIX_NAME
204212
PHP_GD_TTSTR
205213
PHP_GD_JPEG
206214
PHP_GD_PNG

ext/mbstring/mbstring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ php_mbstring_init_globals(zend_mbstring_globals *pglobals)
388388
pglobals->current_language = mbfl_no_language_japanese;
389389
pglobals->internal_encoding = mbfl_no_encoding_euc_jp;
390390
pglobals->current_internal_encoding = mbfl_no_encoding_euc_jp;
391-
pglobals->http_output_encoding = mbfl_no_encoding_invalid;
392-
pglobals->current_http_output_encoding = mbfl_no_encoding_invalid;
391+
pglobals->http_output_encoding = mbfl_no_encoding_pass;
392+
pglobals->current_http_output_encoding = mbfl_no_encoding_pass;
393393
pglobals->http_input_identify = mbfl_no_encoding_invalid;
394394
pglobals->http_input_identify_get = mbfl_no_encoding_invalid;
395395
pglobals->http_input_identify_post = mbfl_no_encoding_invalid;

0 commit comments

Comments
 (0)