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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 21:00:01 2026 UTC