PHP 4.0 Bug #8345 Updated: Non-ANSI code
| From: | sas@php.net | Date: | Thu, 21 Dec 2000 05:32:23 +0000 |
| Subject: | PHP 4.0 Bug #8345 Updated: Non-ANSI code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42018@lists.php.net to get a copy of this message | ||
ID: 8345
Updated by: sas
Reported By: china@thewrittenword.com
Old-Status: Open
Status: Closed
Bug Type: Compile Problem
Assigned To:
Comments:
Fixed in CVS. Thanks for your report.
Previous Comments:
---------------------------------------------------------------------------
[2000-12-20 21:56:53] china@thewrittenword.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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8345