Bug #75441 [Com]: php_unicode.h not available
| From: | danack@php.net | Date: | Wed, 25 Oct 2017 16:08:22 +0000 |
| Subject: | Bug #75441 [Com]: php_unicode.h not available | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212320@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75441&edit=1
ID: 75441
Comment by: danack@php.net
Reported by: colin at viebrock dot ca
Summary: php_unicode.h not available
Status: Open
Type: Bug
Package: mbstring related
Operating System: OS X
PHP Version: 7.1.11RC1
Block user comment: N
Private report: N
New Comment:
From that issue
---------------
They are not listed in the configure files
â mbstring git:(master) â grep PHP_INSTALL_HEADERS *
config.m4: PHP_INSTALL_HEADERS([ext/mbstring], [$PHP_MBSTRING_INSTALL_HEADERS])
config.w32: PHP_INSTALL_HEADERS("ext/mbstring", "mbstring.h oniguruma/oniguruma.h
php_mbregex.h php_onig_compat.h");
config.w32: PHP_INSTALL_HEADERS("ext/mbstring", "mbstring.h oniguruma/oniguruma.h
php_mbregex.h php_onig_compat.h libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h
libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h
libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h
libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h
libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h
libmbfl/mbfl/mbfl_string.h");
config.w32: PHP_INSTALL_HEADERS("ext/mbstring", "php_mbregex.h");
so if they are required it seems to be an upstream issue.
--------------
So maybe it just needs to be listed.
Previous Comments:
------------------------------------------------------------------------
[2017-10-25 15:36:44] colin at viebrock dot ca
Description:
------------
I'm trying to write a C extension for PHP that would benefit from using the
php_unicode_convert_case() function defined in ext/mbstring/php_unicode.h.
However, this header file does not seem to be exported or made available in the Homebrew
installation of PHP (see https://github.com/Homebrew/homebrew-php/issues/4537),
nor does it seem to be available in any Ubuntu packages (apart from hhvm-dev).
Is there a way to either change the header files installed by this package to include php_unicode.h,
or is there some other way I can get multi-byte case conversion functions available to my C
extension?
Test script:
---------------
#include "ext/mbstring/php_unicode.h"
Expected result:
----------------
Running "make" on my extension should build the .so file.
Actual result:
--------------
fatal error: 'ext/mbstring/php_unicode.h' file
not found
#include "ext/mbstring/php_unicode.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75441&edit=1