From: jpbion at gmail dot com
Operating system: Linux
PHP version: 8.1Git-2021-10-30 (Git)
Package: *Unicode Issues
Bug Type: Bug
Bug description:PHP 8.0.12 fails to compile with ICU 70.1 - patch included
Description:
------------
Running on Linux, GLIBC 2.34, GCC 11.2, ICU 70.1, compiling PHP 'master'
from GIT, not a snapshot. Configure command used included in script,
below.
ICU 70.1 notes on https://icu.unicode.org/download/70
ICU4C Specific Changes documented there include:
. ICU operator==() and operator!=() functions now return bool instead
of UBool
Because of this change, PHP with intl support enabled will not compile
on a system with ICU >= 70.1 installed. To fix this a patch is needed,
which I include as an attachment. HOWEVER, it is entirely possible that
this patch would break compilations using ICU versions older than ICU
70.1! Therefore, a better patch is needed, one that checks the ICU
version and conditionally compiles with UBool or bool based on that.
Test script:
---------------
git clone https://github.com/php/php-src.git
cd php-src/
git checkout master
./buildconf
./configure --enable-intl
make
Expected result:
----------------
I want it to compile. It won't without the patch I provide. However, the
patch I provide would, as written, probably make it so PHP cannot be
compiled with versions of ICU4C that are older than 70.1. A better patch
would check the installed ICU version and use UBool for < 70.1 and bool
for >= 70.1.
--
Edit bug report at https://bugs.php.net/bug.php?id=81572&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81572&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81572&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81572&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81572&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81572&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81572&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81572&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81572&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81572&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81572&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81572&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81572&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81572&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81572&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81572&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81572&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81572&r=mysqlcfg