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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 02:01:27 2024 UTC