]> granicus.if.org Git - php/commitdiff
- Made PHP_VERSION and PHP_OS work again
authorZeev Suraski <zeev@php.net>
Fri, 17 Dec 1999 20:01:47 +0000 (20:01 +0000)
committerZeev Suraski <zeev@php.net>
Fri, 17 Dec 1999 20:01:47 +0000 (20:01 +0000)
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)

Zend/zend_constants.c

index 345c246ae573139ab7b5b78712322928459554dc..3a9b84d1c6d75e1ff17c319b36b273ed19559871 100644 (file)
@@ -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);