Add missing function comment
This commit is contained in:
parent
258781307d
commit
c60932088d
@ -178,7 +178,7 @@ final class MD_JAIL {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function _apply_basedir_restriction():void {
|
||||
private function _apply_basedir_restriction():void {
|
||||
|
||||
if (empty($this->_open_basedir)) {
|
||||
throw new MDJailSecurityOptionNotSetException("It has not been specified, which memory limit the script should hold. Set MD_JAIL->open_basedir = string.");
|
||||
@ -187,7 +187,7 @@ final class MD_JAIL {
|
||||
throw new Exception('Failed to set open_basedir restrictions');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enforces security options previously set.
|
||||
@ -233,6 +233,9 @@ final class MD_JAIL {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor. Throws an exception if the settings have not been set.
|
||||
*/
|
||||
public function __destruct() {
|
||||
|
||||
if ($this->_status !== self::STATUS_SPECIFIED) {
|
||||
@ -255,6 +258,5 @@ final class MD_JAIL {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,6 @@ declare(strict_types = 1);
|
||||
* functions.
|
||||
*/
|
||||
final class MD_STD_IN {
|
||||
|
||||
/**
|
||||
* Validates and sanitizes input integers to be in line with MySQL
|
||||
* autoincrement IDs.
|
||||
@ -231,5 +230,4 @@ final class MD_STD_IN {
|
||||
throw new MDgenericInvalidInputsException("ISBNs must be either 10 or 13 characters long.");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ declare(strict_types = 1);
|
||||
* Exception thrown by MDJail if a required security option has not been set.
|
||||
*/
|
||||
final class MDJailSecurityOptionNotSetException extends Exception {
|
||||
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
@ -17,5 +16,4 @@ final class MDJailSecurityOptionNotSetException extends Exception {
|
||||
return $errorMsg;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user