|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59323 Fail to compile - spl_type.c:416: error: duplicate ?static?
Submitted: 2010-07-26 16:38 UTC Modified: 2011-01-18 15:54 UTC
From: arielpatschiki at gmail dot com Assigned: davidc (profile)
Status: Closed Package: SPL_Types (PECL)
PHP Version: 5.3.2 OS: Linux CentoOS 5 - 2.6.18-194.3.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: arielpatschiki at gmail dot com
New email:
PHP Version: OS:


 [2010-07-26 16:38 UTC] arielpatschiki at gmail dot com
When running the command "make", compiler fails and return a fatal error:

I Fixed the error by removing the word "static" from the 405 and 415 lines. The fix is written by Alex Dutra at the follow link:

Quoting: "The macro ZEND_BEGIN_ARG_INFO_EX already includes 'static const'
keywords in the signature, so it's enough to remove the additional 'static'"

Reproduce code:

Expected result:
Build complete.

Actual result:
spl_type.c:405: error: duplicate ?static?
spl_type.c:415: error: duplicate ?static?
make: *** [spl_type.lo] Error 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-13 06:43 UTC] jasonwyz98 at gmail dot com
Yep, got the same error:

/tmp/pear/temp/SPL_Types/spl_type.c: At top level:
/tmp/pear/temp/SPL_Types/spl_type.c:405: error: duplicate 
/tmp/pear/temp/SPL_Types/spl_type.c:415: error: duplicate 

Used the command "pecl install SPL_Types" to install the 

Please fix.

 [2011-01-18 15:54 UTC] david at echolibre dot com
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

In case this was a 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.

This has been fixed in SVN and a release is coming shortly 
 [2011-08-19 12:22 UTC] gauthier dot delacroix at coreye dot fr
Seems that 7 months after the fix, version 0.3.1 still isn't available..?
 [2011-11-11 11:16 UTC] cannadark at pirateswar dot com
Run into same error. I'll try to fix myself bu is it going to be a new release?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 05:01:28 2024 UTC