php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8345 Non-ANSI code
Submitted: 2000-12-20 21:56 UTC Modified: 2000-12-21 00:32 UTC
From: china at thewrittenword dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4 OS: Solaris 7/SPARC
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: china at thewrittenword dot com
New email:
PHP Version: OS:

 

 [2000-12-20 21:56 UTC] china at thewrittenword dot com
ext/session/mod_mm.c has the following:

  #if 0
  #define ps_mm_debug(a...) fprintf(stderr, a)
  #else
  #define ps_mm_debug(a...)
  #endif

Here's what gcc -pedantic -ansi has to say about this:
  warning: ANSI C does not allow macro with variable arguments

The Solaris C compiler dies outright:
"mod_mm.c", line 60: invalid token in #define macro parameters: ...
cc: acomp failed for mod_mm.c

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-21 00:32 UTC] sas@php.net
Fixed in CVS.  Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 26 23:00:02 2026 UTC