Security update for permissions_by_term
[yaffs-website] / web / update.php
1 <?php
2
3 /**
4  * @file
5  * The PHP page that handles updating the Drupal installation.
6  *
7  * All Drupal code is released under the GNU General Public License.
8  * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
9  */
10
11 use Drupal\Core\Update\UpdateKernel;
12 use Symfony\Component\HttpFoundation\Request;
13
14 $autoloader = require_once 'autoload.php';
15
16 // Disable garbage collection during test runs. Under certain circumstances the
17 // update path will create so many objects that garbage collection causes
18 // segmentation faults.
19 require_once 'core/includes/bootstrap.inc';
20 if (drupal_valid_test_ua()) {
21   gc_collect_cycles();
22   gc_disable();
23 }
24
25 $kernel = new UpdateKernel('prod', $autoloader, FALSE);
26 $request = Request::createFromGlobals();
27
28 $response = $kernel->handle($request);
29 $response->send();
30
31 $kernel->terminate($request, $response);