php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57155 fileinfo 1.0.3 does not compile against PHP 5.2RC1
Submitted: 2006-07-25 06:54 UTC Modified: 2006-10-11 19:48 UTC
From: soenke at city-map dot de Assigned:
Status: Closed Package: Fileinfo (PECL)
PHP Version: 5_1 CVS-2006-07-25 OS: Linux
Private report: No CVE-ID: None
 [2006-07-25 06:54 UTC] soenke at city-map dot de
Description:
------------
/bin/sh /var/tmp/pear-build-root/Fileinfo-1.0.3/libtool --mode=compile gcc  -I. -I/tmp/tmpRwQ1Au/Fileinfo-1.0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/Fileinfo-1.0.3/include -I/var/tmp/pear-build-root/Fileinfo-1.0.3/main -I/tmp/tmpRwQ1Au/Fileinfo-1.0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c -o fileinfo.lo
mkdir .libs
 gcc -I. -I/tmp/tmpRwQ1Au/Fileinfo-1.0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/Fileinfo-1.0.3/include -I/var/tmp/pear-build-root/Fileinfo-1.0.3/main -I/tmp/tmpRwQ1Au/Fileinfo-1.0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:124:42: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:125:49: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:125: error: 'ZEND_ME_MAPPING' undeclared here (not in a function)
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:125: error: syntax error before 'ZEND_ME_MAPPING'
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:126:41: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:127:45: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given
/tmp/tmpRwQ1Au/Fileinfo-1.0.3/fileinfo.c:129: error: syntax error before '}' token
make: *** [fileinfo.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-24 21:15 UTC] pecl at adamharvey dot name
The patch at http://www.adamharvey.name/patches/fileinfo-5.2.patch fixes this, although I'm not totally sure the ZEND_MODULE_API_NO comparison is against the right version. Nevertheless, fileinfo compiles with this patch against both PHP 5.1.5 and 5.2.0-rc2.
 [2006-10-11 19:48 UTC] ilia at prohost dot org
This bug has been fixed in CVS.

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-2019 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 21:01:32 2019 UTC