public function validatePhpCode($code)
    {
        $temp = tmpfile();
        fwrite($temp, $code);
        $meta_data = stream_get_meta_data($temp);

        $result = $this->validatePhpFile($meta_data['uri']);
        fclose($temp);
        return $result;
    }
public function validatePhpCode($code)
    {
        $temp = tmpfile();
        fwrite($temp, $code);
        $meta_data = stream_get_meta_data($temp);

        $result = $this->validatePhpFile($meta_data['uri']);
        fclose($temp);
        return $result;
    }
public function validatePhpCode ( $ code ) { $ temp = tmpfile ( ) ; fwrite ( $ temp , $ code ) ; $ meta_data = stream_get_meta_data ( $ temp ) ; $ result = $ this -> validatePhpFile ( $ meta_data [ 'uri' ] ) ; fclose ( $ temp ) ; return $ result ; }
Tries to validate a PHP code
@param string $code
@return mixed
Tries to validate a PHP code