]> granicus.if.org Git - php/commitdiff
Get rid of a useless RINIT and an empty RSHUTDOWN on non-Windows
authorRasmus Lerdorf <rasmus@php.net>
Thu, 17 May 2007 06:38:13 +0000 (06:38 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 17 May 2007 06:38:13 +0000 (06:38 +0000)
ext/standard/basic_functions.c
ext/standard/lcg.c
ext/standard/php_ext_syslog.h
ext/standard/syslog.c

index 0cc02f3c5e6364601db2fdac5902a1e2077d4b8d..735ffa27c4d5cb33f1313c1f1299add7b98c180b 100644 (file)
@@ -4130,8 +4130,6 @@ PHP_RINIT_FUNCTION(basic)
 #endif
        BG(user_shutdown_function_names) = NULL;
 
-       PHP_RINIT(lcg)(INIT_FUNC_ARGS_PASSTHRU);
-
        PHP_RINIT(filestat)(INIT_FUNC_ARGS_PASSTHRU);
 #ifdef HAVE_SYSLOG_H
        PHP_RINIT(syslog)(INIT_FUNC_ARGS_PASSTHRU);
@@ -4186,8 +4184,10 @@ PHP_RSHUTDOWN_FUNCTION(basic)
         */
        
        PHP_RSHUTDOWN(filestat)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#ifdef PHP_WIN32
 #ifdef HAVE_SYSLOG_H
        PHP_RSHUTDOWN(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#endif
 #endif
        PHP_RSHUTDOWN(assert)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
        PHP_RSHUTDOWN(url_scanner_ex)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
index 30fd8b031196e9299a950aab1e3c1696b3549f13..62531cf095c520240d0d32f49acb9caddf1f6e19 100644 (file)
@@ -106,14 +106,6 @@ PHP_MINIT_FUNCTION(lcg)
        return SUCCESS;
 }
 
-PHP_RINIT_FUNCTION(lcg)
-{
-       if (!LCG(seeded)) {
-               lcg_seed(TSRMLS_C);
-       }
-       return SUCCESS;
-}
-
 /* {{{ proto float lcg_value()
    Returns a value from the combined linear congruential generator */
 PHP_FUNCTION(lcg_value)
index 23505fbce0a9e0f4d52df9ad4aad9fc75c686f5a..437dfeabce72645cba07297818dc87a9e8d864a1 100644 (file)
@@ -27,7 +27,9 @@
 
 PHP_MINIT_FUNCTION(syslog);
 PHP_RINIT_FUNCTION(syslog);
+#ifdef PHP_WIN32
 PHP_RSHUTDOWN_FUNCTION(syslog);
+#endif
 PHP_MSHUTDOWN_FUNCTION(syslog);
 
 PHP_FUNCTION(openlog);
index 15fcc80bfb0bea625c67402f57be30e270f5b1ca..34bba462ed2dbe02038fe8570100b1071bac1a41 100644 (file)
@@ -114,13 +114,13 @@ PHP_RINIT_FUNCTION(syslog)
 }
 
 
+#ifdef PHP_WIN32
 PHP_RSHUTDOWN_FUNCTION(syslog)
 {
-#ifdef PHP_WIN32
        closelog();
-#endif
        return SUCCESS;
 }
+#endif
 
 PHP_MSHUTDOWN_FUNCTION(syslog)
 {