diff options
author | Zeev Suraski <zeev@php.net> | 1999-12-17 20:01:47 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-12-17 20:01:47 +0000 |
commit | 71dddd7db7e768ae8145e085fcbb6b6db4a1c40a (patch) | |
tree | 04390e15968facae26bf68901985cba134a5437b | |
parent | a3c65143323804b4780fb0bd90c03acc03eac583 (diff) | |
download | php-git-71dddd7db7e768ae8145e085fcbb6b6db4a1c40a.tar.gz |
- Made PHP_VERSION and PHP_OS work again
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)
-rw-r--r-- | Zend/zend_constants.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c index 345c246ae5..3a9b84d1c6 100644 --- a/Zend/zend_constants.c +++ b/Zend/zend_constants.c @@ -99,26 +99,6 @@ int zend_startup_constants(ELS_D) void zend_register_standard_constants(ELS_D) { - /* ZEND_FIX: Move to PHP */ -#if 0 -#if WIN32|WINNT - /* Get build numbers for Windows NT or Win95 */ - if (dwVersion < 0x80000000){ - php3_os="WINNT"; - } else { - php3_os="WIN32"; - } -#else - php3_os=PHP_OS; -#endif -#endif - - -#if 0 - /* This should go back to PHP */ - REGISTER_MAIN_STRINGL_CONSTANT("PHP_VERSION", PHP_VERSION, sizeof(PHP_VERSION)-1, CONST_PERSISTENT | CONST_CS); - REGISTER_MAIN_STRINGL_CONSTANT("PHP_OS", php3_os, strlen(php3_os), CONST_PERSISTENT | CONST_CS); -#endif REGISTER_MAIN_LONG_CONSTANT("E_ERROR", E_ERROR, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("E_WARNING", E_WARNING, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("E_PARSE", E_PARSE, CONST_PERSISTENT | CONST_CS); |