php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17851 Missing condition to #elif preprocessor instruction.
Submitted: 2002-06-19 14:46 UTC Modified: 2002-06-20 05:49 UTC
From: webmaster at ttw-tool dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.3.0-dev OS: Linux 2.4.17
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at ttw-tool dot de
New email:
PHP Version: OS:

 

 [2002-06-19 14:46 UTC] webmaster at ttw-tool dot de
Version: 4.3.0-dev-zend2-alpha1
'./configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local' '--enable-versioning' '--with-apxs=/usr/local/apache/bin/apxs' '--without-pear'
PHP-API: 20020307
PHP-Ext.API: 20010927
Zend-API: 20010710

IMHO the #elif instruction is lacking a condition.

file: sapi/apache/php_apache.c, lines 182-193:

#ifdef PHP_WIN32
	php_info_print_table_row(1, "Apache for Windows 95/NT");
	php_info_print_table_end();
	php_info_print_table_start();
#elif
	php_info_print_table_row(1, "Apache for NetWare");
	php_info_print_table_end();
	php_info_print_table_start();
#else
	php_info_print_table_row(2, "APACHE_INCLUDE", PHP_APACHE_INCLUDE);
	php_info_print_table_row(2, "APACHE_TARGET", PHP_APACHE_TARGET);
#endif

Managed to compile by deleting lines 182-190 and 193 because OS=Linux.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 14:48 UTC] webmaster at ttw-tool dot de
Version: 4.3.0-dev-zend2-alpha1
'./configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local'
'--enable-versioning' '--with-apxs=/usr/local/apache/bin/apxs'
'--without-pear'
PHP-API: 20020307
PHP-Ext.API: 20010927
Zend-API: 20010710

IMHO the #elif instruction is lacking a condition.

file: sapi/apache/php_apache.c, lines 182-193:

#ifdef PHP_WIN32
	php_info_print_table_row(1, "Apache for Windows 95/NT");
	php_info_print_table_end();
	php_info_print_table_start();
#elif
	php_info_print_table_row(1, "Apache for NetWare");
	php_info_print_table_end();
	php_info_print_table_start();
#else
	php_info_print_table_row(2, "APACHE_INCLUDE", PHP_APACHE_INCLUDE);
	php_info_print_table_row(2, "APACHE_TARGET", PHP_APACHE_TARGET);
#endif

Managed to compile by deleting lines 182-190 and 193 because OS=Linux.
 [2002-06-19 15:02 UTC] hholzgra@php.net
reads like this in CVS:

#elif defined(NETWARE)

please check that your CVS is up-to-date and unmodified
 [2002-06-19 15:10 UTC] webmaster at ttw-tool dot de
Code was from .tar.gz as annouced on php.net (09-Jun-2002)

Latest CVS compiles properly.
 [2002-06-20 05:49 UTC] hholzgra@php.net
ok, deserves 'closed' instead of 'bogus' then
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 07:00:01 2026 UTC