]> granicus.if.org Git - php/commitdiff
Fix bug #55688 (Crash when calling SessionHandler::gc())
authorXinchen Hui <laruence@php.net>
Wed, 14 Sep 2011 04:10:45 +0000 (04:10 +0000)
committerXinchen Hui <laruence@php.net>
Wed, 14 Sep 2011 04:10:45 +0000 (04:10 +0000)
Need arpad to review this change

ext/session/mod_user_class.c

index efc39c3fa69c952d55f9f509b259ca6450663ba9..e72f9585c48d850466975f6f831e24997e4bb499 100644 (file)
@@ -133,7 +133,7 @@ PHP_METHOD(SessionHandler, gc)
        long maxlifetime;
        int nrdels;
 
-       PS_SANITY_CHECK;
+       PS_SANITY_CHECK_IS_OPEN;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &maxlifetime) == FAILURE) {
                return;