summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_class.h
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-06-06 11:36:00 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-06-06 11:36:00 +0200
commit52d541a3149d4a21e9f45fa80b26c338636f92c4 (patch)
treef20229e3df4029130e5f497b204952b344696c82 /ext/intl/msgformat/msgformat_class.h
parent45b3fa4deea739c8a3bf8778efac2f748a2685bc (diff)
downloadphp-git-52d541a3149d4a21e9f45fa80b26c338636f92c4.tar.gz
Optimization in ext/intl/msgformat
Don't transform the string to make it apostrophe friendly in ICU 4.8+ as that it is now the default.
Diffstat (limited to 'ext/intl/msgformat/msgformat_class.h')
-rwxr-xr-xext/intl/msgformat/msgformat_class.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/intl/msgformat/msgformat_class.h b/ext/intl/msgformat/msgformat_class.h
index 0afa792ae3..b6b8e33226 100755
--- a/ext/intl/msgformat/msgformat_class.h
+++ b/ext/intl/msgformat/msgformat_class.h
@@ -19,9 +19,11 @@
#include <php.h>
-#include "intl_common.h"
-#include "intl_error.h"
-#include "intl_data.h"
+#include <unicode/uconfig.h>
+
+#include "../intl_common.h"
+#include "../intl_error.h"
+#include "../intl_data.h"
#include "msgformat_data.h"
typedef struct {
@@ -38,4 +40,8 @@ extern zend_class_entry *MessageFormatter_ce_ptr;
#define MSG_FORMAT_METHOD_FETCH_OBJECT INTL_METHOD_FETCH_OBJECT(MessageFormatter, mfo)
#define MSG_FORMAT_OBJECT(mfo) (mfo)->mf_data.umsgf
+#if U_ICU_VERSION_MAJOR_NUM * 10 + U_ICU_VERSION_MINOR_NUM < 48
+# define MSG_FORMAT_QUOTE_APOS 1
+#endif
+
#endif // #ifndef MSG_FORMAT_CLASS_H