PHP 4.0 Bug #8345: Non-ANSI code
| From: | china at thewrittenword dot com | Date: | Thu, 21 Dec 2000 02:56:53 +0000 |
| Subject: | PHP 4.0 Bug #8345: Non-ANSI code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42014@lists.php.net to get a copy of this message | ||
From: china@thewrittenword.com
Operating system: Solaris 7/SPARC
PHP version: 4.0.4
PHP Bug Type: Compile Problem
Bug description: Non-ANSI code
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
--
Edit Bug report at: http://bugs.php.net/?id=8345&edit=1