From: Fedora at FamilleCollet dot com
Operating system: Linux (Fedora 9)
PHP version: 5.3CVS-2008-07-27 (snap)
PHP Bug Type: Compile Failure
Bug description: fileinfo ext duplicate strndup
Description:
------------
Fileinfo extention is now enabled by default but doesn't compile because
it use "strndup" with is provided both by the system and the source
(softmagic.c)
Source code of softmagic.c contain a test arround is local defined
fonction :
#ifndef HAVE_STRNDUP
char * strndup(const char *, size_t);
...
#endif
But nothing set this macro.
I don't find anything in the .m4 files
Perhaps it should better use the zend_strndup ?
Reproduce code:
---------------
make
Expected result:
----------------
Build succed
Actual result:
--------------
/home/rpmbuild/BUILD/php5.3-200807270630/ext/fileinfo/libmagic/softmagic.c:305:
error: expected identifier or '(' before '__extension__'
/home/rpmbuild/BUILD/php5.3-200807270630/ext/fileinfo/libmagic/softmagic.c:308:
error: expected identifier or '(' before '__extension__'
make: *** [ext/fileinfo/libmagic/softmagic.lo] Error 1
--
Edit bug report at http://bugs.php.net/?id=45636&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45636&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45636&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45636&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45636&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45636&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45636&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45636&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45636&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45636&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45636&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45636&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45636&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45636&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45636&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45636&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45636&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45636&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45636&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45636&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45636&r=mysqlcfg