cvs: php4 /sapi/apache mod_php4.c
| From: | Sterling Hughes | Date: | Wed, 16 May 2001 18:15:49 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5790@lists.php.net to get a copy of this message | ||
sterling Wed May 16 11:15:49 2001 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
Remove redundancy
# And further fix problem ;)
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.100 php4/sapi/apache/mod_php4.c:1.101
--- php4/sapi/apache/mod_php4.c:1.100 Wed May 16 11:10:06 2001
+++ php4/sapi/apache/mod_php4.c Wed May 16 11:15:49 2001
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.100 2001/05/16 18:10:06 sterling Exp $ */
+/* $Id: mod_php4.c,v 1.101 2001/05/16 18:15:49 sterling Exp $ */
#define NO_REGEX_EXTRA_H
#ifdef WIN32
@@ -295,10 +295,12 @@
static int php_apache_sapi_activate(SLS_D)
{
- request_rec *r = ((request_rec *) SG(server_context));
+ request_rec *r;
SLS_FETCH();
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.
@@ -308,7 +310,7 @@
* memory.
*/
block_alarms();
- register_cleanup(((request_rec *) SG(server_context))->pool, NULL, php_apache_request_shutdown,
php_request_shutdown_for_exec);
+ register_cleanup(r->pool, NULL, php_apache_request_shutdown, php_request_shutdown_for_exec);
AP(in_request)=1;
unblock_alarms();