Bug 564307

Summary: php_stream_filter_api.h is BROKEN
Product: Red Hat Enterprise Linux 5 Reporter: Renato Botelho <rbgarga>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: ralph, rbgarga
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-12 11:24:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renato Botelho 2010-02-12 11:15:48 UTC
Description of problem:
I was building a program that depends of this header, and it failed with this error:

/usr/include/php/main/streams/php_stream_filter_api.h:65: error: comma
at end of enumerator list

Version-Release number of selected component (if applicable):
php-devel-5.1.6-24.el5_4.5

After investigating I saw this inside header:

typedef enum {
       PSFS_ERR_FATAL, /* error in data stream */
       PSFS_FEED_ME,   /* filter needs more data; stop processing chain until more is available */
       PSFS_PASS_ON,   /* filter generated output buckets; pass them on to next in chain */
} php_stream_filter_status_t;

Just removing comma after PSFS_PASS_ON, problem's gone

How reproducible:
I got the error building zarafa, but, anyway, the error in code is so explicity

Comment 1 Joe Orton 2010-02-12 11:24:18 UTC
Thanks for the report.  This is due to be fixed in a future update.

*** This bug has been marked as a duplicate of bug 530824 ***