php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77126
Patch php-7.0.32-intl.patch revision 2018-11-08 19:42 UTC by aaron dot nixon at gmail dot com

Patch php-7.0.32-intl.patch for Compile Failure Bug #77126

Patch version 2018-11-08 19:42 UTC

Return to Bug #77126 | Download this patch
Patch Revisions:

Developer: aaron.nixon@gmail.com

--- php-7.0.32/ext/intl/breakiterator/codepointiterator_internal.h.orig     2018-10-05 11:39:33.519829566 -0700
+++ php-7.0.32/ext/intl/breakiterator/codepointiterator_internal.h  2018-10-05 11:34:17.485817630 -0700
@@ -19,6 +19,8 @@
 
 #include <unicode/brkiter.h>
 
+using namespace icu;
+
 using U_ICU_NAMESPACE::BreakIterator;
 
 namespace PHP {
--- php-7.0.32/ext/intl/intl_data.h.orig    2018-10-05 11:39:33.543829795 -0700
+++ php-7.0.32/ext/intl/intl_data.h 2018-10-05 11:34:23.161871764 -0700
@@ -23,6 +23,10 @@
 
 #include "intl_error.h"
 
+#ifdef __cplusplus
+using namespace icu;
+#endif
+
 /* Mock object to generalize error handling in sub-modules.
    Sub-module data structures should always have error as first element
    for this to work!
--- php-7.0.32/ext/intl/common/common_enum.h.orig   2018-10-05 11:39:33.600830338 -0700
+++ php-7.0.32/ext/intl/common/common_enum.h        2018-10-05 11:34:36.564999586 -0700
@@ -29,6 +29,7 @@
 #include "../intl_data.h"
 #ifdef __cplusplus
 }
+using namespace icu;
 #endif
 
 #define INTLITERATOR_ERROR(ii)                                         (ii)->err
--- php-7.0.32/ext/intl/intl_convertcpp.h.orig      2018-10-05 11:39:33.640830719 -0700
+++ php-7.0.32/ext/intl/intl_convertcpp.h   2018-10-05 11:34:48.296111454 -0700
@@ -26,6 +26,8 @@
 #include <unicode/unistr.h>
 #include <zend_types.h>
 
+using namespace icu;
+
 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status);
 
 zend_string* intl_charFromString(const UnicodeString &from, UErrorCode *status);
--- php-7.0.32/ext/intl/php_intl.h.orig     2018-10-05 11:39:33.673831033 -0700
+++ php-7.0.32/ext/intl/php_intl.h  2018-10-05 11:34:55.517180312 -0700
@@ -32,6 +32,10 @@
 #include "intl_error.h"
 #include "Zend/zend_exceptions.h"
 
+#ifdef __cplusplus
+using namespace icu;
+#endif
+
 extern zend_module_entry intl_module_entry;
 #define phpext_intl_ptr &intl_module_entry
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC