Bug #76574 [Opn]: use of undeclared identifiers INT_MAX and LONG_MAX
| From: | ab@php.net | Date: | Thu, 05 Jul 2018 06:37:44 +0000 |
| Subject: | Bug #76574 [Opn]: use of undeclared identifiers INT_MAX and LONG_MAX | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216148@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76574&edit=1
ID: 76574
Updated by: ab@php.net
Reported by: php-bugs-2018 at ryandesign dot com
Summary: use of undeclared identifiers INT_MAX and LONG_MAX
Status: Open
Type: Bug
Package: mbstring related
Operating System: macOS 10.12.6
PHP Version: 7.3.0alpha2
Block user comment: N
Private report: N
New Comment:
Nope, by luck they could have worked, but otherwise there are cases where it depends on the exact
paths. In general, it is better to compile in core.
Especially it's to see you use 7.2 config but the ticket tells mbstring is from 7.3. The
compatibility is not guaranteed. Otherwise, it looks like configure doesn't create config.h for
oniguruma or it is wrong in some way, but under this constellation i'm not sure which config is
used at all. Please be sure you at least use php-config for 7.3 in first place,
oniguruma/src/config.h is created after the configure and include paths point to the correct
location.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2018-07-05 06:26:22] php-bugs-2018 at ryandesign dot com
Extensions in core have worked fine with phpize until now. I'm not sure what further feedback
you're asking me to provide...
------------------------------------------------------------------------
[2018-07-05 06:24:37] ab@php.net
Ah, that explains it. Extensions in the core are usually not prepared for phpize usage. In this
particular case, the config expects an in core path, so it can create conifig.h dynamically.
Anything prevents to compile shared in the core?
Thanks.
------------------------------------------------------------------------
[2018-07-05 04:52:27] php-bugs-2018 at ryandesign dot com
I'm building mbstring as a separate extension, using MacPorts. (I'm the MacPorts
maintainer of PHP.) The only configure flags are:
--prefix=/opt/local --with-php-config=/opt/local/bin/php-config72
The configure output doesn't mention limits.
------------------------------------------------------------------------
[2018-07-04 13:48:54] ab@php.net
Thanks for the report. What are the configure flags? Especially, is --disable-mbregex used?
Thanks.
------------------------------------------------------------------------
[2018-07-04 09:59:04] dc dot link at yahoo dot fr
Odd, because normally limits.h is checked in the configure step.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76574
--
Edit this bug report at https://bugs.php.net/bug.php?id=76574&edit=1