$tables[] = reset($row);
}
return $tables;
}
public function query($type, $sql, $as_object = false, array $params = null, $try_again = true)
{
// Make sure the database is connected
$this->_connection or $this->connect();
$start_time = microtime(true);
if (Kohana::$profiling) {
// Benchmark this query for the current instance
$benchmark = Profiler::start("Database ({$this->_instance})", $sql);
}
// Execute the query
if (($result = $this->_connection->query($sql)) === false) {
if (isset($benchmark)) {
// This benchmark is worthless
Profiler::delete($benchmark);
}
if ($this->_connection->error === 'MySQL server has gone away' && $try_again) {
$this->_connection = null;
$this->_config = Kohana::config('database.'.$this->_instance);
$this->connect();
return $this->query($type, $sql, $as_object, $params, false);
}
throw new Database_Exception(
':error [ :query ]', [
':error' => $this->_connection->error,
':query' => $sql,
], $this->_connection->errno
);
}
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes)"
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
// If we are not currently registered, we should not do anything
if (!$this->isRegistered) {
return;
}
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param InspectorFactoryInterface $factory
*
* @return void
*/
public function setInspectorFactory(InspectorFactoryInterface $factory)
{
$this->inspectorFactory = $factory;
}
public function addFrameFilter($filterCallback)
| Key | Value |
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
| TEMP | "/var/www/clients/client0/web7/tmp"
|
| TMPDIR | "/var/www/clients/client0/web7/tmp"
|
| TMP | "/var/www/clients/client0/web7/tmp"
|
| HOSTNAME | "" |
| USER | "web7"
|
| HOME | "/var/www/clients/client0/web7"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_HOST | "corciano.pl"
|
| SCRIPT_FILENAME | "/var/www/corciano.pl/web/index.php"
|
| REDIRECT_STATUS | "200"
|
| SERVER_NAME | "corciano.pl"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "5.187.51.71"
|
| REMOTE_USER | "" |
| REMOTE_PORT | "44675"
|
| REMOTE_ADDR | "216.73.217.46"
|
| SERVER_SOFTWARE | "nginx/1.18.0"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| HTTPS | "on"
|
| REQUEST_SCHEME | "https"
|
| SERVER_PROTOCOL | "HTTP/2.0"
|
| DOCUMENT_ROOT | "/var/www/corciano.pl/web"
|
| DOCUMENT_URI | "/index.php"
|
| REQUEST_URI | "/bluzki"
|
| SCRIPT_NAME | "/index.php"
|
| CONTENT_LENGTH | "" |
| CONTENT_TYPE | "" |
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "" |
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1785586187.7314
|
| REQUEST_TIME | 1785586187
|