php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72879 Pecl install intl make error with PHP 7.0.8
Submitted: 2016-08-18 08:03 UTC Modified: 2016-08-18 13:07 UTC
Votes:23
Avg. Score:4.1 ± 0.8
Reproduced:23 of 23 (100.0%)
Same Version:7 (30.4%)
Same OS:9 (39.1%)
From: daniel at ohr dot edu Assigned: stas
Status: Verified Package: intl (PECL)
PHP Version: 7.0.9 OS: Mac OS X El Capitan
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-08-18 08:03 UTC] daniel at ohr dot edu
Description:
------------
/private/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found
#include <ext/standard/php_smart_str.h>
         ^
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed

seems that pecl is calling for php_smart.str.h which doesn't exist in PHP 7
needs php_smart_string.h 

something broke here


Test script:
---------------
sudo pecl install intl
using icu4c/57.1


Expected result:
----------------
Expect to have no fatal-errors
supposed to make intl.so



Actual result:
--------------
intl.so is not made

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-18 08:29 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-08-18 08:29 UTC] cmb@php.net
It seems that PECL/intl is not in sync with ext/intl.

Any particular reason why you don't use the bundled ext/intl?
 [2016-08-18 11:59 UTC] daniel at ohr dot edu
I changed my php/mysql setup (from XAMPP to MAMP)  XAMPP doesn't have php compiled with intl already enabled. However if you're using Mac OS X and try to do a pecl install this is what happens using php 7.0.8 so even if its bundled, if someone needs to revert to a different version or something they won't be able to create a make file.
 [2016-08-18 13:07 UTC] cmb@php.net
-Assigned To: cmb +Assigned To: stas
 [2016-08-18 13:07 UTC] cmb@php.net
Stas, are there any plans to keep PECL/intl up-to-date?

The manual states[1]:

| This extension is bundled with PHP as of PHP version 5.3.0.
| Alternatively, the PECL version of this extension may be used
| with all PHP versions greater than 5.2.0 (5.2.4+ recommended).

[1] <http://php.net/manual/en/intl.requirements.php>
 [2016-09-11 16:32 UTC] issamux at gmail dot com
can't install install intl extension 
 sudo pecl install intl
using MAMP and php 7.0.10
In file included from /private/tmp/pear/temp/intl/php_intl.h:34:
/private/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found
#include <ext/standard/php_smart_str.h>

any solution for this ??
 [2016-09-11 22:09 UTC] daniel at ohr dot edu
In the end its worth it install PHP via homebrew as well as apache 2.4 via Homebrew in which case intl is auto installed.  Install mysql, mariadb or mongodb as you wish via homebrew and you'll have your own stack, the way you want it without being subject to bundled stacks
 [2016-12-03 17:53 UTC] rebooter8d at gmail dot com
I faced with the same issue on Ubuntu 16.04 with PHP 7.0.13.
I downloaded the package here http://site.icu-project.org/download/58 and compile it. It was installed correctly and the config file been in /usr/bin/icu-config.
After that I run sudo pecl install intl command and show the way to config (just /usr/).
And I got the same error with php_smart_str.h file.

The reason why I tried to install this in Symfony framework. It told that I should have latest version of intl (quote: To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.)
It's just a recommendation but anyway.
 [2017-05-19 07:17 UTC] serg at kalachev dot ru
Any progress in this issue ?
 [2017-05-19 10:30 UTC] daniel at ohr dot edu
The specific issue was never resolved
but in the end I installed php via homebrew, in which case you can add and remove intl as needed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Fri Jul 28 08:01:47 2017 UTC