Bug #76826 [NEW]: error: use of undeclared identifier 'finite'

From: Date: Fri, 31 Aug 2018 04:11:26 +0000
Subject: Bug #76826 [NEW]: error: use of undeclared identifier 'finite'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216820@lists.php.net to get a copy of this message
From:             php-bugs-2018 at ryandesign dot com
Operating system: Mac OS X 10.7.5
PHP version:      7.2.9
Package:          Compile Failure
Bug Type:         Bug
Bug description:error: use of undeclared identifier 'finite'

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 bug report at https://bugs.php.net/bug.php?id=76826&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76826&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76826&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76826&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76826&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76826&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76826&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76826&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76826&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76826&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76826&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76826&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76826&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76826&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76826&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76826&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76826&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76826&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76826&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76826&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76826&r=mysqlcfg



Thread (14 messages)

« previous php.bugs (#216820) next »