Server IP : 104.21.38.3 / Your IP : 172.71.81.224 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lapma.in/phpMyAdmin/vendor/thecodingmachine/safe/generated/ |
Upload File : |
<?php namespace Safe; use Safe\Exceptions\FileinfoException; /** * This function closes the resource opened by finfo_open. * * @param resource $finfo Fileinfo resource returned by finfo_open. * @throws FileinfoException * */ function finfo_close($finfo): void { error_clear_last(); $result = \finfo_close($finfo); if ($result === false) { throw FileinfoException::createFromPhpError(); } } /** * Procedural style * * Object oriented style (constructor): * * This function opens a magic database and returns its resource. * * @param int $options One or disjunction of more Fileinfo * constants. * @param string $magic_file Name of a magic database file, usually something like * /path/to/magic.mime. If not specified, the * MAGIC environment variable is used. If the * environment variable isn't set, then PHP's bundled magic database will * be used. * * Passing NULL or an empty string will be equivalent to the default * value. * @return resource (Procedural style only) * Returns a magic database resource on success. * @throws FileinfoException * */ function finfo_open(int $options = FILEINFO_NONE, string $magic_file = "") { error_clear_last(); $result = \finfo_open($options, $magic_file); if ($result === false) { throw FileinfoException::createFromPhpError(); } return $result; } /** * Returns the MIME content type for a file as determined by using * information from the magic.mime file. * * @param string $filename Path to the tested file. * @return string Returns the content type in MIME format, like * text/plain or application/octet-stream. * @throws FileinfoException * */ function mime_content_type(string $filename): string { error_clear_last(); $result = \mime_content_type($filename); if ($result === false) { throw FileinfoException::createFromPhpError(); } return $result; }