php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76153 Intl compilation fails with icu4c 61.1
Submitted: 2018-03-27 09:49 UTC Modified: -
From: smillerdev at me dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2018-03-27 09:49 UTC] smillerdev at me dot com
Description:
------------
When compiling the Intl extension with Icu4c 61.1 the compilation fails with namespace issues (as seen here: https://gist.github.com/commitay/60d1dbdc019af4bc523579cffcb2efee)

This is very likely due to the migration issues mentioned in the 61.1 release notes:
http://site.icu-project.org/download/61#TOC-Migration-Issues

Test script:
---------------
https://github.com/commitay/homebrew-core/blob/bcf504d2d53b993a13f6de22b9ba7498401cb423/Formula/php.rb#L74-L150


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-28 16:06 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=710284cbc4a54cac0a9ec4ea29a7486e0d99a33b
Log: Fixed bug #76153 Intl compilation fails with icu4c 61.1
 [2018-03-28 16:06 UTC] ab@php.net
-Status: Open +Status: Closed
 [2018-03-28 22:11 UTC] srl at icu-project dot org
please instead fix the source to use the icu:: namespace. See http://source.icu-project.org/repos/icu/trunk/icu4c/readme.html#RecBuild 

> Namespace (ICU 61 and later): Since ICU 61, call sites need to qualify ICU types explicitly, for example icu::UnicodeString, or do using icu::UnicodeString; where appropriate. If your code relies on the "using namespace icu;" that used to be in unicode/uversion.h, then you need to update your code.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC