It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
83
if ( ! is_array($this->deps) )
84
$this->deps = array();
85
}
86
87
/**
88
* Add handle data.
89
*
90
* @access public
91
* @since 2.6.0
92
*
93
* @param string $name The data key to add.
94
* @param mixed $data The data value to add.
95
* @return bool False if not scalar, true otherwise.
If you suppress an error, we recommend checking for the error condition explicitly: