Edit report at https://bugs.php.net/bug.php?id=80760&edit=1

 ID:                 80760
 Updated by:         c...@php.net
 Reported by:        semnanweb at gmail dot com
 Summary:            fribidi not compile with new version of php
-Status:             Duplicate
+Status:             Open
 Type:               Bug
 Package:            fribidi
 Operating System:   debian 10
 PHP Version:        8.0.2
-Assigned To:        cmb
+Assigned To:        
 Block user comment: N
 Private report:     N

 New Comment:

Thanks Jan!


Previous Comments:
------------------------------------------------------------------------
[2021-02-19 00:01:04] phpdev at ehrhardt dot nl

Strange comment on PHP 7.1. On Windows with Fribidi 1.0.2 and php-7.4.16 RC1 
these are the results:

=====================================================================
Number of tests :    5                 5
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 ( 20.0%) ( 20.0%)
Tests passed    :    4 ( 80.0%) ( 80.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
fribidi_get_charsets() and fribidi_charset_info() tests\002.phpt

The minor diffs in the 002 test:
========DIFF========
050+   * 0x14 ^T LRI   * 0x15 ^U RLI   * 0x16 ^V FSI   * 0x17 ^W PDI
050-   * 0x14 ^T ON    * 0x15 ^U ON    * 0x16 ^V ON    * 0x17 ^W ON
087+     * _i  LRI
088+     * _y  RLI
089+     * _f  FSI
090+     * _I  PDI
========DONE========
seem to indicate that the test is out-of date.

------------------------------------------------------------------------
[2021-02-17 10:29:46] c...@php.net

The fribidi extension is not even compatible with PHP 7.1.1, what
has been reported as bug #74092.

------------------------------------------------------------------------
[2021-02-17 08:23:34] semnanweb at gmail dot com

Description:
------------
try to compipe: 

# apt-cache show libfribidi-dev
Package: libfribidi-dev
Source: fribidi
Version: 1.0.5-3.1+deb10u1
Installed-Size: 313
Maintainer: Debian Hebrew Packaging Team <team+heb...@tracker.debian.org>
Architecture: amd64
Depends: libfribidi0 (= 1.0.5-3.1+deb10u1)
Description: Development files for FreeBidi library
Description-md5: 4dddf6b79d76d215e47387fa37ab5e90
Multi-Arch: same
Homepage: http://www.fribidi.org/
Tag: culture::arabic, culture::hebrew, devel::lang:c, devel::library,
 implemented-in::c, role::devel-lib, works-with::unicode
Section: libdevel
Priority: optional
Filename: pool/main/f/fribidi/libfribidi-dev_1.0.5-3.1+deb10u1_amd64.deb
Size: 100620
MD5sum: f5f7174eea3664e7d83116c4e2dcb9cd
SHA256: fe16e4954c6bb2c6fa34968cac6508a4d5cfe87d6429d77fa037217b7008d230

checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/libtool 
--mode=compile cc -I. -I/tmp/pear/temp/fribidi 
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/include 
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/main 
-I/tmp/pear/temp/fribidi -I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
-I/usr/include/fribidi  -DHAVE_CONFIG_H  -g -O2    -c 
/tmp/pear/temp/fribidi/fribidi.c -o fribidi.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/fribidi 
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/include 
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/main 
-I/tmp/pear/temp/fribidi -I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
-I/usr/include/fribidi -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/temp/fribidi/fribidi.c  -fPIC -DPIC -o .libs/fribidi.o
/tmp/pear/temp/fribidi/fribidi.c: In function '_direction_is_validate':
/tmp/pear/temp/fribidi/fribidi.c:106:1: warning: type of 'direction' defaults 
to 'int' [-Wimplicit-int]
 _direction_is_validate(direction)
 ^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c: In function '_charset_is_validate':
/tmp/pear/temp/fribidi/fribidi.c:128:1: warning: type of 'charset' defaults to 
'int' [-Wimplicit-int]
 _charset_is_validate(charset)
 ^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c: In function 'zif_fribidi_log2vis':
/tmp/pear/temp/fribidi/fribidi.c:191:44: error: expected ')' before 'TSRMLS_CC'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &logical_str, 
&logical_str_len, &direction, &charset) == FAILURE)
                                            ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:191:6: error: too few arguments to function 
'zend_parse_parameters'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &logical_str, 
&logical_str_len, &direction, &charset) == FAILURE)
      ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
 ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char 
*type_spec, ...);
                      ^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:122:25: error: expected ')' before 'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown direction."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:193:2: note: in expansion of macro 
'_validate_direction'
  _validate_direction(direction);
  ^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:122:3: error: too few arguments to function 
'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown direction."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:193:2: note: in expansion of macro 
'_validate_direction'
  _validate_direction(direction);
  ^~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const 
char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:25: error: expected ')' before 'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:194:2: note: in expansion of macro 
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:3: error: too few arguments to function 
'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:194:2: note: in expansion of macro 
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const 
char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:219:46: error: macro "RETURN_STRINGL" passed 3 
arguments, but takes just 2
  RETURN_STRINGL(visual_str, visual_str_len, 0);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c:219:2: error: 'RETURN_STRINGL' undeclared 
(first use in this function)
  RETURN_STRINGL(visual_str, visual_str_len, 0);
  ^~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:219:2: note: each undeclared identifier is 
reported only once for each function it appears in
/tmp/pear/temp/fribidi/fribidi.c: In function 'zif_fribidi_charset_info':
/tmp/pear/temp/fribidi/fribidi.c:230:44: error: expected ')' before 'TSRMLS_CC'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &charset) == 
FAILURE)
                                            ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:230:6: error: too few arguments to function 
'zend_parse_parameters'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &charset) == 
FAILURE)
      ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
 ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char 
*type_spec, ...);
                      ^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:25: error: expected ')' before 'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:232:2: note: in expansion of macro 
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:3: error: too few arguments to function 
'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:232:2: note: in expansion of macro 
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const 
char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:237:45: error: macro "add_assoc_string" passed 
4 arguments, but takes just 3
    (char *)fribidi_char_set_name(charset), 1);
                                             ^
/tmp/pear/temp/fribidi/fribidi.c:236:2: error: 'add_assoc_string' undeclared 
(first use in this function); did you mean 'add_assoc_string_ex'?
  add_assoc_string(return_value, "name",
  ^~~~~~~~~~~~~~~~
  add_assoc_string_ex
/tmp/pear/temp/fribidi/fribidi.c:239:46: error: macro "add_assoc_string" passed 
4 arguments, but takes just 3
    (char *)fribidi_char_set_title(charset), 1);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c:242:46: error: macro "add_assoc_string" passed 
4 arguments, but takes just 3
     (char *)fribidi_char_set_desc(charset), 1);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c: In function 'zif_fribidi_get_charsets':
/tmp/pear/temp/fribidi/fribidi.c:251:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_UTF8,      
"FRIBIDI_CHARSET_UTF8",    1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:252:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_ISO8859_6, 
"FRIBIDI_CHARSET_8859_6",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:253:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_ISO8859_8, 
"FRIBIDI_CHARSET_8859_8",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:254:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CP1255,    
"FRIBIDI_CHARSET_CP1255",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:255:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CP1256,    
"FRIBIDI_CHARSET_CP1256",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:256:2: error: too many arguments to function 
'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CAP_RTL,   
"FRIBIDI_CHARSET_CAP_RTL", 1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char *str);
               ^~~~~~~~~~~~~~~~
make: *** [Makefile:209: fribidi.lo] Error 1
ERROR: `make' failed



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80760&edit=1

-- 
PECL development discussion Mailing List (https://pecl.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to