php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #735 Unterminated string report in hw.c
Submitted: 1998-09-10 12:19 UTC Modified: 1998-09-10 16:22 UTC
From: ken dot mcnamara at ameritech dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.3 OS: Solaris 2.5.1
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: ken dot mcnamara at ameritech dot com
New email:
PHP Version: OS:

 

 [1998-09-10 12:19 UTC] ken dot mcnamara at ameritech dot com
compile failure(s) during 'make install'

Line 176 of function/hw.c gives this fatal error:

functions/hw.c:176: unterminated string or character constant

Looking at the code there is no reason for this as the line is a comment:

// Ups, failed! Let's at least free memory

But removing that line results in a successful compile of this part of the code.

Just found second problem.

gcc reports failure on 'functions/hg_comm.o'

Problem is commented line //#define HW_DEBUG

When removed it compiles and install is finished.

Don't understand why comment lines would cause these problems.  But I'm fixed now.

Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-10 16:22 UTC] zeev
Fixed
C++-style comments aren't a part of ANSI-C, and your Sun compiler doesn't like them very much...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 07:01:29 2024 UTC