php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65533 Unterminated #ifndef in Zend/zend_language_parser.(h|c)
Submitted: 2013-08-23 11:30 UTC Modified: 2013-08-25 14:37 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: fk at florian-kaiser dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.4.19 OS: Debian 7
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fk at florian-kaiser dot net
New email:
PHP Version: OS:

 

 [2013-08-23 11:30 UTC] fk at florian-kaiser dot net
Description:
------------
When trying to compile the just released version 5.4.19 we get the following errors on make:

/tmp/php5.4-5.4.18/Zend/zend_language_parser.h:33:0: error: unterminated #ifndef

[ ... ]

/tmp/php5.4-5.4.18/Zend/zend_language_parser.y:66:0: error: unterminated #ifndef
make[1]: *** [Zend/zend_language_parser.lo] Error 1

The errors itself only seem to turn up using the debian packacking mechanisms, not for simple ./configure && make. 

Still, the code clearly suffers from 2 missing closing tags for #ifdef, so I guess its not nescessarily reproducable.

I attached a patch that adds both missing endifs.

Expected result:
----------------
Compile finishes without error.

Actual result:
--------------
Compile stops and errors out.

Patches

zend_language_parser_missing_endif.patch (last revision 2013-08-23 11:32 UTC by fk at florian-kaier dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-23 21:16 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2013-08-23 21:16 UTC] aharvey@php.net
Those are correct as they are — they're header include guards with matching 
#endif statements at the end of the files. (They're also generated files that 
don't exist in Git.)

How are you compiling this, exactly (ie what commands, are there any additional 
files to do with the packaging, etc)?
 [2013-08-25 10:25 UTC] fk at florian-kaiser dot net
-Status: Feedback +Status: Closed
 [2013-08-25 10:25 UTC] fk at florian-kaiser dot net
I must confess I wasnt thorough enough. You are right, the #endif that closes the first #ifndef is at the very last line of zend_language_parser. For some reason, I had old zend_language_parser.(h|c) files from the previous debian package in the directory that did not get overwritten.

So, I close this bug since it is not a PHP bug at all. Sorry for the the inconvenience my lazy research caused.
 [2013-08-25 14:37 UTC] johannes@php.net
-Status: Closed +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 04:01:30 2024 UTC