{
$this->path = (string) tempnam($dir, $prefix);
}
/** Destroy this TemporaryFile object. */
public function __destruct()
{
unlink($this->path);
}
/** Get the path to the temporary file. */
public function __toString(): string
{
return $this->path;
}
/** Get the raw contents of the file. */
public function getContents(): string
{
return (string) file_get_contents($this->path);
}
}
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 149680160 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;
$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 Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
1
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 149680160 bytes)"
"/Library/WebServer/www.ptonthat.fr/html/files/app/src/TemporaryFile.php"
31
Key | Value |
zip | "."
|
Key | Value |
USER | "Rajah"
|
HOME | "/Users/Rajah"
|
SCRIPT_NAME | "/files/index.php"
|
REQUEST_URI | "/files/?zip=."
|
QUERY_STRING | "zip=."
|
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REMOTE_PORT | "46808"
|
SCRIPT_FILENAME | "/Library/WebServer/www.ptonthat.fr/html/files/index.php"
|
SERVER_ADMIN | "pierre.tonthat@free.fr"
|
CONTEXT_DOCUMENT_ROOT | "/Library/WebServer/www.ptonthat.fr/html"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "https"
|
DOCUMENT_ROOT | "/Library/WebServer/www.ptonthat.fr/html"
|
REMOTE_ADDR | "18.209.209.28"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "192.168.1.13"
|
SERVER_NAME | "www.ptonthat.fr"
|
SERVER_SOFTWARE | "Apache/2.4.53 (Unix) LibreSSL/2.8.3"
|
SERVER_SIGNATURE | "" |
PATH | "/usr/bin:/bin:/usr/sbin:/sbin"
|
HTTP_HOST | "www.ptonthat.fr"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_ACCEPT | "*/*"
|
SSL_TLS_SNI | "www.ptonthat.fr"
|
HTTPS | "on"
|
HTTP_AUTHORIZATION | "" |
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/files/index.php"
|
REQUEST_TIME_FLOAT | 1711631985.2061
|
REQUEST_TIME | 1711631985
|
APP_DEBUG | "false"
|
APP_LANGUAGE | "en"
|
DARK_MODE | "false"
|
DISPLAY_READMES | "false"
|
READMES_FIRST | "false"
|
ZIP_DOWNLOADS | "true"
|
GOOGLE_ANALYTICS_ID | "false"
|
MATOMO_ANALYTICS_URL | "false"
|
MATOMO_ANALYTICS_ID | "false"
|
SORT_ORDER | "name"
|
REVERSE_SORT | "false"
|
Key | Value |
APP_DEBUG | "false"
|
APP_LANGUAGE | "en"
|
DARK_MODE | "false"
|
DISPLAY_READMES | "false"
|
READMES_FIRST | "false"
|
ZIP_DOWNLOADS | "true"
|
GOOGLE_ANALYTICS_ID | "false"
|
MATOMO_ANALYTICS_URL | "false"
|
MATOMO_ANALYTICS_ID | "false"
|
SORT_ORDER | "name"
|
REVERSE_SORT | "false"
|