예제 #1
0
 private function populateServerState(&$state, Oxygen_Http_Request $request)
 {
     $state['phpVersion'] = PHP_VERSION;
     $state['phpVersionId'] = PHP_VERSION_ID;
     $state['databaseDriver'] = $this->connection->databaseType();
     $state['databaseDriverVersion'] = $this->connection->version();
     $state['databaseTablePrefix'] = $this->connection->tablePrefix();
     $state['memoryLimit'] = $this->environment->getMemoryLimit();
     $state['processArchitecture'] = strlen(decbin(~0));
     // Results in 32 or 62.
     $state['internalIp'] = isset($request->server['SERVER_ADDR']) ? $request->server['SERVER_ADDR'] : null;
     $state['uname'] = php_uname();
     $state['hostname'] = php_uname('n');
     $state['os'] = PHP_OS;
     $state['windows'] = DIRECTORY_SEPARATOR === '\\';
 }
예제 #2
0
 public function version()
 {
     return $this->connection->version();
 }