note 128179 added to intl.installation

From: Date: Wed, 01 Feb 2023 20:20:39 +0000
Subject: note 128179 added to intl.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-220134@lists.php.net to get a copy of this message
Hi! How can I install intl on FreeBSD 11 + php5.6.40 ? Tried compile it with php 56 and received errors: In file included from /usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:24: /usr/local/src/php-5.6.40/main/php.h:337:52: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); ^~~~~~~~~ /usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:25: error: unknown type name 'UnicodeString' int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status) ^ /usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:54:31: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status) ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:289:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ 18 warnings and 4 errors generated. *** Error code 1 Stop. make: stopped in /usr/local/src/php-5.6.40 Many thanks for your help ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.158.213 (proxied: 67.58.110.219) ---- Manual Page -- https://php.net/manual/en/intl.installation.php Edit -- https://main.php.net/note/edit/128179 Del: integrated -- https://main.php.net/note/delete/128179/integrated Del: useless -- https://main.php.net/note/delete/128179/useless Del: bad code -- https://main.php.net/note/delete/128179/bad+code Del: spam -- https://main.php.net/note/delete/128179/spam Del: non-english -- https://main.php.net/note/delete/128179/non-english Del: in docs -- https://main.php.net/note/delete/128179/in+docs Del: other reasons-- https://main.php.net/note/delete/128179 Reject -- https://main.php.net/note/reject/128179 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220134) next »