]> granicus.if.org Git - php/commitdiff
- Fix memleak on `php -v'
authorFelipe Pena <felipe@php.net>
Tue, 21 Jun 2011 01:47:05 +0000 (01:47 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 21 Jun 2011 01:47:05 +0000 (01:47 +0000)
sapi/cli/php_cli.c

index 3aa88fdf644b0609082a6d572f664377e0b79fd1..6b8113ad1747fb31292ca35e94d659b1edc9cfe0 100644 (file)
@@ -704,6 +704,7 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */
 #endif
                                get_zend_version()
                        );
+                       sapi_deactivate(TSRMLS_C);
                        goto out;
 
                case 'm': /* list compiled in modules */