From: [EMAIL PROTECTED] Operating system: Windows PHP version: 4.0CVS-2002-05-29 PHP Bug Type: Feature/Change Request Bug description: overriding constants in config.w32.h.in
While working with PEAR installer it occurred that the pear.ini setting file got placed in a newly created directory c:\php4. This dir is hardcoded in: http://cvs.php.net/co.php/php4/main/config.w32.h.in To respect other php installations like in c:\php or c:\programme\php one need a feature to override the constants given by the php core: http://www.php.net/manual/en/reserved.constants.core.php Since scripts in PEAR are designed using these constants, and constants are not variable, there is probably only one way to override these values in config.w32.h.in e.g. like: #define PHP_SYSCONFDIR ( (getenv("PHP_SYSCONFDIR") != "c:\\php4" ) ? getenv("PHP_SYSCONFDIR" ) : "c:\\php4" ) This allows the user to configure its paths by hand through setting the environment variables like: c:\>set PHP_SYSCONFDIR=c:\php I propose to do this switch for all path related constants in config.w32.h.in [DIRECTORY_SEPARATOR, PHP_SYSCONFDIR, DEFAULT_INCLUDE_PATH, PEAR_INSTALL_DIR, PEAR_EXTENSION_DIR, PHP_EXTENSION_DIR, PHP_BINDIR, PHP_LIBDIR, PHP_DATADIR, PHP_SYSCONFDIR, PHP_LOCALSTATEDIR, PHP_CONFIG_FILE_PATH]. -urs -- Edit bug report at http://bugs.php.net/?id=17516&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17516&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17516&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17516&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17516&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17516&r=support Expected behavior: http://bugs.php.net/fix.php?id=17516&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17516&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17516&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17516&r=globals
