Skip to content

Commit b80cb7b

Browse files
author
Andrei Zmievski
committed
Unicode support
1 parent 39072c4 commit b80cb7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+8276
-2377
lines changed

Zend/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ libZend_la_SOURCES=\
1717
zend_objects_API.c zend_ts_hash.c zend_stream.c zend_mm.c \
1818
zend_default_classes.c zend_reflection_api.c \
1919
zend_iterators.c zend_interfaces.c zend_exceptions.c \
20-
zend_strtod.c zend_multibyte.c
20+
zend_strtod.c zend_multibyte.c zend_strtod.c zend_strtol.c
2121

2222
libZend_la_LDFLAGS =
2323
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@

Zend/Zend.m4

+9-6
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,15 @@ AC_ARG_ENABLE(memory-limit,
160160
ZEND_MEMORY_LIMIT=no
161161
])
162162
163-
AC_ARG_ENABLE(zend-multibyte,
164-
[ --enable-zend-multibyte Compile with zend multibyte support], [
165-
ZEND_MULTIBYTE=$enableval
166-
],[
167-
ZEND_MULTIBYTE=no
168-
])
163+
dnl AC_ARG_ENABLE(zend-multibyte,
164+
dnl [ --enable-zend-multibyte Compile with zend multibyte support], [
165+
dnl ZEND_MULTIBYTE=$enableval
166+
dnl ],[
167+
dnl ZEND_MULTIBYTE=no
168+
dnl ])
169+
170+
dnl Unicode PHP doesn't need ZEND_MULTIBYTE
171+
ZEND_MULTIBYTE=no
169172
170173
AC_MSG_CHECKING([virtual machine dispatch method])
171174
AC_MSG_RESULT($PHP_ZEND_VM)

Zend/flex.skl

-12
Original file line numberDiff line numberDiff line change
@@ -440,18 +440,6 @@ YY_MALLOC_DECL
440440
#define ECHO /* There is no output */
441441
#endif
442442
443-
#ifdef ZEND_MULTIBYTE
444-
# define YY_INPUT(buf, result, max_size) \
445-
if ( ((result = zend_multibyte_yyinput(yyin, buf, max_size TSRMLS_CC)) == 0) \
446-
&& zend_stream_ferror( yyin TSRMLS_CC) ) \
447-
YY_FATAL_ERROR( "input in flex scanner failed" );
448-
#else
449-
# define YY_INPUT(buf, result, max_size) \
450-
if ( ((result = zend_stream_read(yyin, buf, max_size TSRMLS_CC)) == 0) \
451-
&& zend_stream_ferror( yyin TSRMLS_CC) ) \
452-
YY_FATAL_ERROR( "input in flex scanner failed" );
453-
#endif
454-
455443
#ifndef ECHO
456444
%- Standard (non-C++) definition
457445
/* This used to be an fputs(), but since the string might contain NUL's,

0 commit comments

Comments
 (0)