drupflare/worker - v1.0.4
    Preparing search index...

    Variable DRUPAL_OP_PHPConst

    DRUPAL_OP_PHP: "\nuse Drupal\\Core\\DrupalKernel;\nuse Drupal\\Core\\Site\\Settings;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// __CFW_FIBER_SHIM__\n// __CFW_HOST_HELPERS__\nchdir('/drupal');\n\n$out = ['ok' => false];\n\n$_SERVER['HTTP_HOST'] = 'localhost';\n$_SERVER['SERVER_NAME'] = 'localhost';\n$_SERVER['SERVER_PORT'] = '80';\n$_SERVER['REQUEST_URI'] = '/';\n$_SERVER['REQUEST_METHOD'] = 'GET';\n$_SERVER['SCRIPT_NAME'] = '/index.php';\n$_SERVER['SCRIPT_FILENAME'] = '/drupal/index.php';\n$_SERVER['PHP_SELF'] = '/index.php';\n$_SERVER['DOCUMENT_ROOT'] = '/drupal';\n$_SERVER['REMOTE_ADDR'] = '127.0.0.1';\n$_SERVER['SERVER_SOFTWARE'] = 'workerd';\n$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';\n\ntry {\n\tif (!isset($GLOBALS['__pw_autoloader']) || !is_object($GLOBALS['__pw_autoloader'])) {\n\t\t$GLOBALS['__pw_autoloader'] = require '/drupal/autoload.php';\n\t}\n\t$autoloader = $GLOBALS['__pw_autoloader'];\n\tif (!isset($GLOBALS['__pw_kernel'])) {\n\t\t$boot = Request::create('/', 'GET');\n\t\t$kernel = new DrupalKernel('prod', $autoloader);\n\t\tDrupalKernel::bootEnvironment();\n\t\t$sitePath = DrupalKernel::findSitePath($boot);\n\t\t$kernel->setSitePath($sitePath);\n\t\tSettings::initialize('/drupal', $sitePath, $autoloader);\n\t\t$kernel->boot();\n\t\t// A FRESHLY BOOTED KERNEL HAS AN EMPTY REQUEST STACK, and anything reaching routing then dies\n\t\t// on RequestContext::fromRequest(null). Invisible while every caller ran after a render had\n\t\t// pushed one; the provisioning drops made a cold container the ordinary case.\n\t\t$stack = $kernel->getContainer()->get('request_stack');\n\t\tif ($stack->getCurrentRequest() === null) {\n\t\t\t$stack->push($boot);\n\t\t\t$kernel->getContainer()->get('router.request_context')->fromRequest($boot);\n\t\t}\n\t\t// and the .module FILES, which only the HTTP kernel path loads. Without this a cold container\n\t\t// has services but no procedural half: saving a user reached _user_mail_notify() and died\n\t\t// \"Call to undefined function\"\n\t\t$kernel->getContainer()->get('module_handler')->loadAll();\n\t\t$GLOBALS['__pw_kernel'] = $kernel;\n\t\t$out['bootedKernel'] = 1;\n\t}\n\n\tif (!defined('SAVED_NEW')) {\n\t\trequire_once '/drupal/core/includes/common.inc';\n\t}\n\n\t// __CFW_SCHEMA_REPAIR__\n\n\t// __CFW_BODY__\n\n\t$out['ok'] = true;\n} catch (Throwable $e) {\n\t$out['error'] = get_class($e) . ': ' . $e->getMessage();\n\t$out['trace'] = substr($e->getTraceAsString(), 0, 600);\n}\necho json_encode($out);\n"