]> granicus.if.org Git - php/commitdiff
# Revert the SLS_FETCH() ;)
authorSterling Hughes <sterling@php.net>
Wed, 16 May 2001 18:28:18 +0000 (18:28 +0000)
committerSterling Hughes <sterling@php.net>
Wed, 16 May 2001 18:28:18 +0000 (18:28 +0000)
sapi/apache/mod_php4.c

index f07ac3541818d8023532837cf63def205cc803bb..1e79701d0f34e8714d75d74a11913f535a3789ed 100644 (file)
@@ -295,12 +295,9 @@ static void php_apache_request_shutdown(void *dummy)
 
 static int php_apache_sapi_activate(SLS_D)
 {
-       request_rec *r; 
-       SLS_FETCH();
+       request_rec *r = (request_rec *) SG(server_context); 
        APLS_FETCH();
 
-       r = (request_rec *) SG(server_context);
-
        /*
         * For the Apache module version, this bit of code registers a cleanup
         * function that gets triggered when our request pool is destroyed.