Fwd: [PHP-DEV] PHP 4.0 Bug #8345: Non-ANSI code

From: Date: Thu, 21 Dec 2000 05:31:05 +0000
Subject: Fwd: [PHP-DEV] PHP 4.0 Bug #8345: Non-ANSI code
Groups: php.dev 
Request: Send a blank email to php-dev+get-42017@lists.php.net to get a copy of this message
Is there some #define we can check to see if the compiler supports this? Andi
Date: 21 Dec 2000 02:56:53 -0000 To: php-dev@lists.php.net From: china@thewrittenword.com Subject: [PHP-DEV] PHP 4.0 Bug #8345: Non-ANSI code
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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#42017) next »