|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51943 Several files are out of ANSI spec
Submitted: 2010-05-28 17:08 UTC Modified: 2010-07-14 02:05 UTC
From: CoreyStup at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.2.13 OS: AIX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: CoreyStup at gmail dot com
New email:
PHP Version: OS:


 [2010-05-28 17:08 UTC] CoreyStup at gmail dot com
Using a native compiler on AIX, several files are not ANSI compliant and won't compile.

ext/pdo/php_pdo_driver.h, trailing commas are not allowed in enums.

ext/hash/php_hash_tiger.h, bitfields must be defined as type int, unsigned int, 
or signed int.   char is not allowed.

ext/date/lib/parse_date.c, uchar already defined conflict. I'm not sure what the correct fix is.  AIX already has uchar defined in sys/types.h:
/usr/include/sys/types.h:typedef        unsigned char   uchar_t;
/usr/include/sys/types.h:typedef        uchar_t         uchar;


5212patch (last revision 2010-05-28 15:08 UTC by CoreyStup at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-21 07:49 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-06-21 07:49 UTC]
The parse_date.c one is quite easy too, its just a matter of:

#ifndef _AIX
typedef ...

Since parse_date.c also defines uchar to unsigned char, im assigning this bug to myself and see if i can get my sparse co working and ill commit this
 [2010-07-14 01:59 UTC]
Automatic comment from SVN on behalf of kalle
Log: Fixed bug #51943 (Several files are out of ANSI spec)

# Based on patch by CoreyStup at gmail dot com
 [2010-07-14 02:04 UTC]
Automatic comment from SVN on behalf of kalle
Log: Update the re2c files aswell (bug #51943)
 [2010-07-14 02:05 UTC]
-Status: Assigned +Status: Closed
 [2010-07-14 02:05 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in the latest RC for both 5.2 and 5.3
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 04:01:35 2024 UTC