|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80310 ext-intl with icu4c 68.1: use of undeclared identifier 'TRUE'
Submitted: 2020-11-03 14:03 UTC Modified: 2020-11-03 15:09 UTC
From: me at derrabus dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.4.12 OS: macOS 10.15
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 + 40 = ?
Subscribe to this entry?

 [2020-11-03 14:03 UTC] me at derrabus dot de
I tried to build php 7.4.12 with ext-intl against icu4c 68.1 and the compilation fails with the error output below. Downgrading to icu4c 67.1 fixes the problem.

This might be related to this change:

Actual result:
/path/to/php-7.4.12/ext/intl/collator/collator_sort.c:349:26: error: use of undeclared identifier 'TRUE'
        collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
/path/to/php-7.4.12/ext/intl/collator/collator_sort.c:543:26: error: use of undeclared identifier 'FALSE'
        collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
2 errors generated.
make: *** [ext/intl/collator/collator_sort.lo] Error 1
make: *** Waiting for unfinished jobs....


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-03 15:09 UTC]
Would it work with

 [2020-11-03 15:34 UTC] me at derrabus dot de
If I try this, the error is a different one, but it still does not compile.

/path/to/php-7.4.12/ext/intl/timezone/timezone_class.cpp:328:21: error: use of undeclared identifier 'FALSE'
        tz->getOffset(now, FALSE, rawOffset, dstOffset, uec);
/path/to/php-7.4.12/ext/intl/timezone/timezone_methods.cpp:98:57: error: use of undeclared identifier 'FALSE'
        tz = timezone_convert_datetimezone(tzobj->type, tzobj, FALSE, NULL,
 [2020-11-03 16:14 UTC] me at derrabus dot de
However, it *does* compile if I configure CXXFLAGS the same way.
 [2020-11-03 16:30 UTC] me at derrabus dot de
Can you have a look at please?
 [2020-11-09 13:36 UTC]
Automatic comment on behalf of
Log: Fixed bug #80310: Support for icu4c 68.1.
 [2020-11-09 13:36 UTC]
-Status: Open +Status: Closed
 [2022-01-07 09:35 UTC] adiechahari at gmail dot com
export CXX="g++ -DTRUE=1 -DFALSE=0"
export CC="gcc -DTRUE=1 -DFALSE=0"

Try this, it should work
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 09:05:53 2022 UTC