php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59822 1.0.2 seem to be incompatible with php 5.2.17
Submitted: 2011-06-20 05:23 UTC Modified: 2011-09-05 06:42 UTC
From: zhalassy at loginet dot hu Assigned:
Status: Closed Package: bcompiler (PECL)
PHP Version: 5.2.17 OS: Gentoo Linux 64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zhalassy at loginet dot hu
New email:
PHP Version: OS:

 

 [2011-06-20 05:23 UTC] zhalassy at loginet dot hu
Description:
------------
In the file php_bcompiler.c, on line 958 there is a call:

zend_is_callable(func, 0, &name TSRMLS_CC)

In PHP 5.3, the /usr/lib64/php5.3/include/php/Zend/zend_API.h declares zend_is_callable() as like this:

ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, char **callable_name TSRMLS_DC);

While in PHP 5.2, the /usr/lib64/php5.2/include/php/Zend/zend_API.h declares zend_is_callable() differently:

ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, char **callable_name);


Reproduce code:
---------------
# have a PHP 5.2 version, like with "emerge php:5.2"
pecl download bcompiler
tar xzf bcompiler-1.0.2.tgz
cd bcompiler-1.0.2
phpize
aclocal
libtoolize --force
autoheader
autoconf
./configure
make


Expected result:
----------------
It should compile.

Actual result:
--------------
/bin/sh /root/bcompiler-1.0.2/libtool --mode=compile cc  -I. -I/root/bcompiler-1.0.2 -DPHP_ATOM_INC -I/root/bcompiler-1.0.2/include -I/root/bcompiler-1.0.2/main -I/root/bcompiler-1.0.2 -I/usr/lib64/php5.2/include/php -I/usr/lib64/php5.2/include/php/main -I/usr/lib64/php5.2/include/php/TSRM -I/usr/lib64/php5.2/include/php/Zend -I/usr/lib64/php5.2/include/php/ext -I/usr/lib64/php5.2/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/bcompiler-1.0.2/php_bcompiler.c -o php_bcompiler.lo 
libtool: compile:  cc -I. -I/root/bcompiler-1.0.2 -DPHP_ATOM_INC -I/root/bcompiler-1.0.2/include -I/root/bcompiler-1.0.2/main -I/root/bcompiler-1.0.2 -I/usr/lib64/php5.2/include/php -I/usr/lib64/php5.2/include/php/main -I/usr/lib64/php5.2/include/php/TSRM -I/usr/lib64/php5.2/include/php/Zend -I/usr/lib64/php5.2/include/php/ext -I/usr/lib64/php5.2/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/bcompiler-1.0.2/php_bcompiler.c  -fPIC -DPIC -o .libs/php_bcompiler.o
/root/bcompiler-1.0.2/php_bcompiler.c: In function ?zif_bcompiler_set_filename_handler?:
/root/bcompiler-1.0.2/php_bcompiler.c:958: error: too many arguments to function ?zend_is_callable?
make: *** [php_bcompiler.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-05 06:42 UTC] val@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 23:01:27 2024 UTC