php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42606 unicode/constants.c relies on ICU draft api
Submitted: 2007-09-09 19:33 UTC Modified: 2010-06-21 00:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: spam02 at pornel dot net Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 6CVS-2007-09-09 (snap) OS: MacOSX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spam02 at pornel dot net
New email:
PHP Version: OS:

 

 [2007-09-09 19:33 UTC] spam02 at pornel dot net
Description:
------------
Compile fails with:
ext/unicode/constants.c: In function ‘php_register_property_constants’:
ext/unicode/constants.c:81: error: ‘UCHAR_POSIX_ALNUM’ undeclared 

The definition of it is in ICU's uchar.h hidden in #ifndef U_HIDE_DRAFT_API



Expected result:
----------------
constants.c should check whether stable or draft ICU API is available or just not rely on these constants. 
If it couldn't possibly work without draft API, configure should fail instead.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-12 16:31 UTC] jani@php.net
What ICU version this happens with?
 [2008-08-15 21:55 UTC] spam02 at pornel dot net
3.2 on OS X 10.5.4 with Fink (/sw/include/unicode/)
 [2008-08-15 22:27 UTC] pajoye@php.net
The minimum version required for PHP 5.3 is 3.6 or 3.8 (3.8 is the recommended one and used by intl as test base). PHP 6 will rely on 3.8 or maybe even 4.x.

About this constant, it is not anymore in a draft section (3.6+). The fix would be to actually detect the minimum version and fail if it is not found (which should happen with 3.2).
 [2010-06-21 00:28 UTC] felipe@php.net
-Status: Open +Status: Wont fix
 [2010-06-21 00:28 UTC] felipe@php.net
Old trunk related.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC