diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-10 19:22:36 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-10 19:22:36 +0000 |
commit | 42765d50e0f44f904d227016c370528c955101a9 (patch) | |
tree | f8c18d89ab6bc6c0406bd5f580edda65b39a1944 | |
parent | 5bdd18caf124d2b300b6ab19be8ca1400ce49916 (diff) | |
download | php-git-42765d50e0f44f904d227016c370528c955101a9.tar.gz |
Only activate if we're inside an actual request
-rw-r--r-- | main/SAPI.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index a48e84f6b7..006789a474 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -192,9 +192,9 @@ SAPI_API void sapi_activate(SLS_D) sapi_read_post_data(SLS_C); } SG(request_info).cookie_data = sapi_module.read_cookies(SLS_C); - } - if (sapi_module.activate) { - sapi_module.activate(SLS_C); + if (sapi_module.activate) { + sapi_module.activate(SLS_C); + } } } |