Bug #76826 [Opn->Fbk]: error: use of undeclared identifier 'finite'

From: Date: Mon, 03 Sep 2018 12:53:36 +0000
Subject: Bug #76826 [Opn->Fbk]: error: use of undeclared identifier 'finite'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216863@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76826&edit=1

 ID:                 76826
 Updated by:         ab@php.net
 Reported by:        php-bugs-2018 at ryandesign dot com
 Summary:            error: use of undeclared identifier 'finite'
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OS X 10.7.5
 PHP Version:        7.2.9
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for the report. Perhaps you need to use phpize from the same (or at least) PHP version. Older
PHP versions will have different php_config.h. Otherwise, ext/intl can also be built shared.

Btw, what does __cplusplus macro contain?

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2018-08-31 04:11:25] php-bugs-2018 at ryandesign dot com

Description:
------------
Building the bundled intl extension (I happen to build it separately from php, using phpize) fails
on Mac OS X 10.7.5 (with clang 425.0.28 as provided by Xcode 4.6.3), in several PHP versions (7.2.9,
7.1.21). It worked in previous PHP versions. Here's the error message from PHP 7.2.9:


In file included from ext/intl/intl_convertcpp.cpp:24:
In file included from /opt/local/include/php72/php/main/php.h:35:
In file included from /opt/local/include/php72/php/Zend/zend.h:328:
/opt/local/include/php72/php/Zend/zend_operators.h:114:18: error: use of undeclared identifier
'finite'
        if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
                        ^
/opt/local/include/php72/php/main/../main/php_config.h:2619:24: note: expanded from macro
'zend_finite'
#define zend_finite(a) finite(a)
                       ^
/opt/local/include/php72/php/Zend/zend_portability.h:312:52: note: expanded from macro
'UNEXPECTED'
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
                                                   ^


Perhaps it was caused by this commit: https://github.com/php/php-src/commit/ad790bea2e4a8a25c79ceab964601f3785cd2bf1



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76826&edit=1


Thread (14 messages)

« previous php.bugs (#216863) next »