php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71886 Unable to compile with make
Submitted: 2016-03-23 10:29 UTC Modified: 2017-01-10 08:32 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: Bob_586 at Yahoo dot com Assigned:
Status: Suspended Package: BLENC (PECL)
PHP Version: 7.0.4 OS: Ubuntu 14.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Bob_586 at Yahoo dot com
New email:
PHP Version: OS:

 

 [2016-03-23 10:29 UTC] Bob_586 at Yahoo dot com
Description:
------------
root@bobby:/opt/blenc-1.1.4b# phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
root@bobby:/opt/blenc-1.1.4b# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable blowfish script encryption... yes, shared
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@bobby:/opt/blenc-1.1.4b# make
/bin/bash /opt/blenc-1.1.4b/libtool --mode=compile cc  -I. -I/opt/blenc-1.1.4b -DPHP_ATOM_INC -I/opt/blenc-1.1.4b/include -I/opt/blenc-1.1.4b/main -I/opt/blenc-1.1.4b -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /opt/blenc-1.1.4b/blenc.c -o blenc.lo 
libtool: compile:  cc -I. -I/opt/blenc-1.1.4b -DPHP_ATOM_INC -I/opt/blenc-1.1.4b/include -I/opt/blenc-1.1.4b/main -I/opt/blenc-1.1.4b -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/blenc-1.1.4b/blenc.c  -fPIC -DPIC -o .libs/blenc.o
In file included from /usr/include/php/20151012/Zend/zend.h:36:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c: In function 'zm_startup_blenc':
/usr/include/php/20151012/Zend/zend_hash.h:61:111: warning: passing argument 3 of '_zend_hash_init' from incompatible pointer type
 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent)      _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
                                                                                                               ^
/opt/blenc-1.1.4b/blenc.c:114:2: note: in expansion of macro 'zend_hash_init'
  zend_hash_init(php_bl_keys, 0, NULL, _php_blenc_pefree_wrapper, TRUE);
  ^
In file included from /usr/include/php/20151012/Zend/zend.h:36:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/usr/include/php/20151012/Zend/zend_hash.h:57:29: note: expected 'dtor_func_t' but argument is of type 'void (*)(void **)'
 ZEND_API void ZEND_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
                             ^
/opt/blenc-1.1.4b/blenc.c: In function 'zif_blenc_encrypt':
/opt/blenc-1.1.4b/blenc.c:245:21: warning: passing argument 1 of 'php_blenc_make_md5' from incompatible pointer type
  php_blenc_make_md5(main_hash, main_key, strlen(main_key) TSRMLS_CC);
                     ^
In file included from /opt/blenc-1.1.4b/blenc.c:34:0:
/opt/blenc-1.1.4b/php_blenc.h:88:13: note: expected 'char *' but argument is of type 'char **'
 static void php_blenc_make_md5(char *, void *, unsigned int TSRMLS_DC);
             ^
/opt/blenc-1.1.4b/blenc.c:263:33: warning: passing argument 2 of 'php_blenc_encode' from incompatible pointer type
  bfdata = php_blenc_encode(key, main_hash, strlen(key), &bfdata_len TSRMLS_CC);
                                 ^
In file included from /opt/blenc-1.1.4b/blenc.c:34:0:
/opt/blenc-1.1.4b/php_blenc.h:92:9: note: expected 'unsigned char *' but argument is of type 'char **'
 b_byte *php_blenc_encode(void *, unsigned char *, int, int * TSRMLS_DC);
         ^
/opt/blenc-1.1.4b/blenc.c:264:12: error: too many arguments to function 'php_base64_encode'
  b64data = php_base64_encode(bfdata, bfdata_len, &b64data_len);
            ^
In file included from /opt/blenc-1.1.4b/blenc.c:30:0:
/usr/include/php/20151012/ext/standard/base64.h:27:28: note: declared here
 PHPAPI extern zend_string *php_base64_encode(const unsigned char *, size_t);
                            ^
/opt/blenc-1.1.4b/blenc.c:264:10: warning: assignment from incompatible pointer type
  b64data = php_base64_encode(bfdata, bfdata_len, &b64data_len);
          ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c:266:58: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if((stream = php_stream_open_wrapper(output_file, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL))) {
                                                          ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:266:58: note: each undeclared identifier is reported only once for each function it appears in
  if((stream = php_stream_open_wrapper(output_file, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL))) {
                                                          ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:273:44: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
   RETVAL_STRINGL(b64data, b64data_len, TRUE);
                                            ^
/opt/blenc-1.1.4b/blenc.c:273:3: error: 'RETVAL_STRINGL' undeclared (first use in this function)
   RETVAL_STRINGL(b64data, b64data_len, TRUE);
   ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c: In function 'php_blenc_file_to_mem':
/opt/blenc-1.1.4b/blenc.c:298:57: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if (!(stream = php_stream_open_wrapper(filename, "rb", ENFORCE_SAFE_MODE, NULL))) {
                                                         ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:302:73: error: macro "php_stream_copy_to_mem" passed 4 arguments, but takes just 3
  if ((len = php_stream_copy_to_mem(stream, &data, PHP_STREAM_COPY_ALL, 0)) == 0) {
                                                                         ^
/opt/blenc-1.1.4b/blenc.c:302:13: error: 'php_stream_copy_to_mem' undeclared (first use in this function)
  if ((len = php_stream_copy_to_mem(stream, &data, PHP_STREAM_COPY_ALL, 0)) == 0) {
             ^
/opt/blenc-1.1.4b/blenc.c: In function 'php_blenc_load_keyhash':
/opt/blenc-1.1.4b/blenc.c:343:13: error: too many arguments to function 'php_base64_decode'
    bfdata = php_base64_decode(key, strlen(key), &bfdata_len);
             ^
In file included from /opt/blenc-1.1.4b/blenc.c:30:0:
/usr/include/php/20151012/ext/standard/base64.h:29:28: note: declared here
 PHPAPI extern zend_string *php_base64_decode(const unsigned char *, size_t);
                            ^
/opt/blenc-1.1.4b/blenc.c:343:11: warning: assignment from incompatible pointer type
    bfdata = php_base64_decode(key, strlen(key), &bfdata_len);
           ^
/opt/blenc-1.1.4b/blenc.c:347:75: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
    if(zend_hash_next_index_insert(php_bl_keys, &temp, sizeof(char *), NULL) == FAILURE) {
                                                                           ^
/opt/blenc-1.1.4b/blenc.c:347:7: error: 'zend_hash_next_index_insert' undeclared (first use in this function)
    if(zend_hash_next_index_insert(php_bl_keys, &temp, sizeof(char *), NULL) == FAILURE) {
       ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c: In function 'blenc_compile':
/opt/blenc-1.1.4b/blenc.c:545:68: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if( (stream = php_stream_open_wrapper(file_handle->filename, "r", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL)) == NULL) {
                                                                    ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:595:58: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
     zend_hash_get_current_data(php_bl_keys, (void **)&key) == SUCCESS;
                                                          ^
/opt/blenc-1.1.4b/blenc.c:595:5: error: 'zend_hash_get_current_data' undeclared (first use in this function)
     zend_hash_get_current_data(php_bl_keys, (void **)&key) == SUCCESS;
     ^
/opt/blenc-1.1.4b/blenc.c:633:48: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
   ZVAL_STRINGL(code, decoded, decoded_len, TRUE);
                                                ^
/opt/blenc-1.1.4b/blenc.c:633:3: error: 'ZVAL_STRINGL' undeclared (first use in this function)
   ZVAL_STRINGL(code, decoded, decoded_len, TRUE);
   ^
/opt/blenc-1.1.4b/blenc.c:634:38: warning: passing argument 2 of 'zend_compile_string' discards 'const' qualifier from pointer target type
   retval = zend_compile_string(code, file_handle->filename TSRMLS_CC);
                                      ^
/opt/blenc-1.1.4b/blenc.c:634:38: note: expected 'char *' but argument is of type 'const char *'
make: *** [blenc.lo] Error 1

Test script:
---------------
apt-get install php7.0-dev build-essential
pecl download channel://pecl.php.net/blenc-1.1.4b
tar xzf blenc-1.1.4b
cd blenc-1.1.2b
phpize
./configure
make
sudo make install

Expected result:
----------------
modules/blenc.so

Actual result:
--------------
/opt/blenc-1.1.4b/blenc.c: In function 'zm_startup_blenc':
/usr/include/php/20151012/Zend/zend_hash.h:61:111: warning: passing argument 3 of '_zend_hash_init' from incompatible pointer type
 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent)      _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
                                                                                                               ^
/opt/blenc-1.1.4b/blenc.c:114:2: note: in expansion of macro 'zend_hash_init'
  zend_hash_init(php_bl_keys, 0, NULL, _php_blenc_pefree_wrapper, TRUE);
  ^
In file included from /usr/include/php/20151012/Zend/zend.h:36:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/usr/include/php/20151012/Zend/zend_hash.h:57:29: note: expected 'dtor_func_t' but argument is of type 'void (*)(void **)'
 ZEND_API void ZEND_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
                             ^
/opt/blenc-1.1.4b/blenc.c: In function 'zif_blenc_encrypt':
/opt/blenc-1.1.4b/blenc.c:245:21: warning: passing argument 1 of 'php_blenc_make_md5' from incompatible pointer type
  php_blenc_make_md5(main_hash, main_key, strlen(main_key) TSRMLS_CC);
                     ^
In file included from /opt/blenc-1.1.4b/blenc.c:34:0:
/opt/blenc-1.1.4b/php_blenc.h:88:13: note: expected 'char *' but argument is of type 'char **'
 static void php_blenc_make_md5(char *, void *, unsigned int TSRMLS_DC);
             ^
/opt/blenc-1.1.4b/blenc.c:263:33: warning: passing argument 2 of 'php_blenc_encode' from incompatible pointer type
  bfdata = php_blenc_encode(key, main_hash, strlen(key), &bfdata_len TSRMLS_CC);
                                 ^
In file included from /opt/blenc-1.1.4b/blenc.c:34:0:
/opt/blenc-1.1.4b/php_blenc.h:92:9: note: expected 'unsigned char *' but argument is of type 'char **'
 b_byte *php_blenc_encode(void *, unsigned char *, int, int * TSRMLS_DC);
         ^
/opt/blenc-1.1.4b/blenc.c:264:12: error: too many arguments to function 'php_base64_encode'
  b64data = php_base64_encode(bfdata, bfdata_len, &b64data_len);
            ^
In file included from /opt/blenc-1.1.4b/blenc.c:30:0:
/usr/include/php/20151012/ext/standard/base64.h:27:28: note: declared here
 PHPAPI extern zend_string *php_base64_encode(const unsigned char *, size_t);
                            ^
/opt/blenc-1.1.4b/blenc.c:264:10: warning: assignment from incompatible pointer type
  b64data = php_base64_encode(bfdata, bfdata_len, &b64data_len);
          ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c:266:58: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if((stream = php_stream_open_wrapper(output_file, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL))) {
                                                          ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:266:58: note: each undeclared identifier is reported only once for each function it appears in
  if((stream = php_stream_open_wrapper(output_file, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL))) {
                                                          ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:273:44: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
   RETVAL_STRINGL(b64data, b64data_len, TRUE);
                                            ^
/opt/blenc-1.1.4b/blenc.c:273:3: error: 'RETVAL_STRINGL' undeclared (first use in this function)
   RETVAL_STRINGL(b64data, b64data_len, TRUE);
   ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c: In function 'php_blenc_file_to_mem':
/opt/blenc-1.1.4b/blenc.c:298:57: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if (!(stream = php_stream_open_wrapper(filename, "rb", ENFORCE_SAFE_MODE, NULL))) {
                                                         ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:302:73: error: macro "php_stream_copy_to_mem" passed 4 arguments, but takes just 3
  if ((len = php_stream_copy_to_mem(stream, &data, PHP_STREAM_COPY_ALL, 0)) == 0) {
                                                                         ^
/opt/blenc-1.1.4b/blenc.c:302:13: error: 'php_stream_copy_to_mem' undeclared (first use in this function)
  if ((len = php_stream_copy_to_mem(stream, &data, PHP_STREAM_COPY_ALL, 0)) == 0) {
             ^
/opt/blenc-1.1.4b/blenc.c: In function 'php_blenc_load_keyhash':
/opt/blenc-1.1.4b/blenc.c:343:13: error: too many arguments to function 'php_base64_decode'
    bfdata = php_base64_decode(key, strlen(key), &bfdata_len);
             ^
In file included from /opt/blenc-1.1.4b/blenc.c:30:0:
/usr/include/php/20151012/ext/standard/base64.h:29:28: note: declared here
 PHPAPI extern zend_string *php_base64_decode(const unsigned char *, size_t);
                            ^
/opt/blenc-1.1.4b/blenc.c:343:11: warning: assignment from incompatible pointer type
    bfdata = php_base64_decode(key, strlen(key), &bfdata_len);
           ^
/opt/blenc-1.1.4b/blenc.c:347:75: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
    if(zend_hash_next_index_insert(php_bl_keys, &temp, sizeof(char *), NULL) == FAILURE) {
                                                                           ^
/opt/blenc-1.1.4b/blenc.c:347:7: error: 'zend_hash_next_index_insert' undeclared (first use in this function)
    if(zend_hash_next_index_insert(php_bl_keys, &temp, sizeof(char *), NULL) == FAILURE) {
       ^
In file included from /usr/include/php/20151012/main/php.h:389:0,
                 from /opt/blenc-1.1.4b/blenc.c:26:
/opt/blenc-1.1.4b/blenc.c: In function 'blenc_compile':
/opt/blenc-1.1.4b/blenc.c:545:68: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
  if( (stream = php_stream_open_wrapper(file_handle->filename, "r", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL)) == NULL) {
                                                                    ^
/usr/include/php/20151012/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper'
 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC)
                                                                                                           ^
/opt/blenc-1.1.4b/blenc.c:595:58: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
     zend_hash_get_current_data(php_bl_keys, (void **)&key) == SUCCESS;
                                                          ^
/opt/blenc-1.1.4b/blenc.c:595:5: error: 'zend_hash_get_current_data' undeclared (first use in this function)
     zend_hash_get_current_data(php_bl_keys, (void **)&key) == SUCCESS;
     ^
/opt/blenc-1.1.4b/blenc.c:633:48: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
   ZVAL_STRINGL(code, decoded, decoded_len, TRUE);
                                                ^
/opt/blenc-1.1.4b/blenc.c:633:3: error: 'ZVAL_STRINGL' undeclared (first use in this function)
   ZVAL_STRINGL(code, decoded, decoded_len, TRUE);
   ^
/opt/blenc-1.1.4b/blenc.c:634:38: warning: passing argument 2 of 'zend_compile_string' discards 'const' qualifier from pointer target type
   retval = zend_compile_string(code, file_handle->filename TSRMLS_CC);
                                      ^
/opt/blenc-1.1.4b/blenc.c:634:38: note: expected 'char *' but argument is of type 'const char *'
make: *** [blenc.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-17 11:08 UTC] pasanen dot tuukka at gmail dot com
I've been doing little bit hacking on this and solved problem (Compiling on PHP7 and make it work). It's little bit untested but works for me. If you like to give it a spin you can find it from: https://github.com/illuusio/pecl-php-blenc
 [2017-01-10 08:32 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:32 UTC] kalle@php.net
I'm suspending the reports for BLENC as it doesn't seem to have stalled (looking at both repositories I could find on git.php.net and github) and it does not seem compatible with any currently supported version of PHP either. Please unsuspend in case someone takes over this extension
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC