php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1267 C++ comments in C source files
Submitted: 1999-03-25 21:56 UTC Modified: 1999-03-26 05:57 UTC
From: squyres at cse dot nd dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.7 OS: Solaris 2.5.1/2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: squyres at cse dot nd dot edu
New email:
PHP Version: OS:

 

 [1999-03-25 21:56 UTC] squyres at cse dot nd dot edu
The Sun Workshop 4.2 compilers do not allow C++-style comments (//) in C source files by default.  There are two statements in C source files in the 3.0.7 release that include C++ comments:

php.h line 148:
//#include "compat.h"

functions/php3_string.h line 93:
//extern PHPAPI char *_StrTr(char *string, char *str_from, char *str_to);

Deleting these lines, or changing them to C-style comments does the trick.

Jeff Squyres

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-26 05:57 UTC] sas
Ok, thanks for paying attention.

Everybody should read CODING_STANDARDS, ASAP :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 00:01:27 2024 UTC