From 71dddd7db7e768ae8145e085fcbb6b6db4a1c40a Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 17 Dec 1999 20:01:47 +0000 Subject: [PATCH] - Made PHP_VERSION and PHP_OS work again - More php3_ cleanup @- Restored the PHP_VERSION and PHP_OS constants (Zeev) --- Zend/zend_constants.c | 20 -------------------- 1 file changed, 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); -- 2.50.1