|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74763 igbinary v2.0.1 fails with php-7.1.6
Submitted: 2017-06-15 15:24 UTC Modified: 2017-10-20 03:25 UTC
From: Assigned: tandre (profile)
Status: Closed Package: igbinary (PECL)
PHP Version: 7.1.6 OS: Debian GNU/Linux 8.8 (jessie)
Private report: No CVE-ID: None
 [2017-06-15 15:24 UTC]
Using either gcc version 4.9.2 (Debian 4.9.2-10) or gcc version 6.1.0 (GCC).

Build fails with the following error:
main/internal_functions.c:107:2: error: ‘phpext_igbinary_ptr’ undeclared here (not in a function)

All the sources are stored under /usr/local/src

Test script:
Here is my build script (I tried slimming it down, but then the build worked):
cd /usr/local/src/php-7.1.6
rm -R ext/igbinary 2>/dev/null ; mkdir ext/igbinary ; cp -R ../igbinary-2.0.1/* ext/igbinary/
rm -R ext/redis 2>/dev/null ; mkdir ext/redis ; cp -R ../redis-3.1.2/* ext/redis/
cd /usr/local/src/php-7.1.6
rm configure ; ./buildconf --force ; make clean
./configure --prefix=/usr/local/php71 --disable-all --enable-igbinary --enable-redis --disable-redis-session --enable-redis-igbinary

Expected result:
Build complete.
Don't forget to run 'make test'.

Actual result:
/usr/local/src/php-7.1.6/Zend/zend_execute.c: In function ‘zend_check_arg_type’:
/usr/local/src/php-7.1.6/Zend/zend_execute.c:958:3: warning: ‘ce’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   zend_verify_arg_error(zf, cur_arg_info, arg_num, ce, arg);
/usr/local/src/php-7.1.6/Zend/zend_execute.c:947:20: note: ‘ce’ was declared here
  zend_class_entry *ce;
/bin/bash /usr/local/src/php-7.1.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Imain/ -I/usr/local/src/php-7.1.6/main/ -DPHP_ATOM_INC -I/usr/local/src/php-7.1.6/include -I/usr/local/src/php-7.1.6/main -I/usr/local/src/php-7.1.6 -I/usr/local/src/php-7.1.6/ext/date/lib -I/usr/local/src/php-7.1.6/ext -I/usr/local/php71/include/php/ext/date/lib -I/usr/local/src/php-7.1.6/TSRM -I/usr/local/src/php-7.1.6/Zend  -Wall  -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c main/internal_functions_cli.c -o main/internal_functions_cli.lo
main/internal_functions_cli.c:42:2: error: ‘phpext_igbinary_ptr’ undeclared here (not in a function)
Makefile:781: recipe for target 'main/internal_functions_cli.lo' failed
make: *** [main/internal_functions_cli.lo] Error 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-23 23:52 UTC]
This should be fixed in the 2.0.3+ releases, which are currently available on github but not yet on pecl.

See ("Fixes main/internal_functions_cli.c ... error: ‘phpext_igbinary_ptr’")
 [2017-10-20 03:25 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: tandre
 [2017-10-20 03:25 UTC]
This should be fixed in the 2.0.3+ releases, and I haven't heard anything new. Closing this.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 22:01:28 2024 UTC