php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77046 Compilation failure with ICU>61.1
Submitted: 2018-10-22 12:01 UTC Modified: 2018-10-22 16:12 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: info at icod dot de Assigned: cmb (profile)
Status: Wont fix Package: Compile Failure
PHP Version: 5.6.38 OS: Linux Gentoo
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at icod dot de
New email:
PHP Version: OS:

 

 [2018-10-22 12:01 UTC] info at icod dot de
Description:
------------
ICU, currently at version 63 and php 5.6.38 lead to a failed compilation with intl enabled.



Actual result:
--------------
In file included from /var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.h:28:5: note: ‘int intl_stringFromChar’ previously defined here
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
     ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:25: error: ‘UnicodeString’ was not declared in this scope
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                         ^~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:25: note: suggested alternative:
In file included from /var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.h:26,
                 from /var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/unistr.h:289:20: note:   ‘icu::UnicodeString’
 class U_COMMON_API UnicodeString : public Replaceable
                    ^~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:40: error: ‘ret’ was not declared in this scope
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                        ^~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:40: note: suggested alternative: ‘recv’
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                        ^~~
                                        recv
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:45: error: expected primary-expression before ‘char’
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                             ^~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:64: error: expected primary-expression before ‘str_len’
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                                                ^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:84: error: expected primary-expression before ‘*’ token
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                                                                    ^
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:85: error: ‘status’ was not declared in this scope
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                                                                     ^~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:85: note: suggested alternative: ‘stat64’
 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
                                                                                     ^~~~~~
                                                                                     stat64
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:54:31: error: ‘UnicodeString’ does not name a type; did you mean ‘OnUpdateString’?
 int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status)
                               ^~~~~~~~~~~~~
                               OnUpdateString
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp: In function ‘int intl_charFromString(const int&, char**, int*, UErrorCode*)’:
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:56:11: error: request for member ‘isBogus’ in ‘from’, which is of non-class type ‘const int’
  if (from.isBogus()) {
           ^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:62:26: error: request for member ‘length’ in ‘from’, which is of non-class type ‘const int’
  int32_t capacity = from.length() * 3 + 1;
                          ^~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:64:11: error: request for member ‘isEmpty’ in ‘from’, which is of non-class type ‘const int’
  if (from.isEmpty()) {
           ^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:74:31: error: request for member ‘getBuffer’ in ‘from’, which is of non-class type ‘const int’
  const UChar *utf16buf = from.getBuffer();
                               ^~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:76:69: error: request for member ‘length’ in ‘from’, which is of non-class type ‘const int’
  u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf, from.length(),
                                                                     ^~~~~~
make: *** [Makefile:853: ext/intl/intl_convertcpp.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-22 16:12 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2018-10-22 16:12 UTC] cmb@php.net
PHP 5.6 is no longer actively supported as of 2017-01-20.
Therefore it doesn't receive any non-security related bugfixes
anymore.

[1] <http://php.net/supported-versions.php>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 15:01:27 2025 UTC