Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
package com.savvas.content.analyzer.util; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.stream.Stream; import org.apache.commons.io.FileUtils; import org.apache.commons.io.LineIterator; import org.json.JSONTokener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class FileUtil { private static final Logger LOGGER = LoggerFactory.getLogger(FileUtil.class); /** The Constant ERROR_LOG_MSG_1. */ private FileUtil() {} LineIterator it = FileUtils.lineIterator(file, "UTF-8"); try { while (it.hasNext()) { LOGGER.debug(line); } } finally { LineIterator.closeQuietly(it); } } List<String> pageXhtmls = new ArrayList<>(); try (Stream<Path> files = Files.list(Paths.get(dirPath)) ) { files.forEach(path -> pageXhtmls.add(path.toString())); LOGGER.error(ERROR_LOG_MSG_1, e); } return pageXhtmls; } List<String> pageXhtmls = new ArrayList<>(); files.forEach(path -> pageXhtmls.add(path.toString())); return pageXhtmls; } return new JSONTokener(content).nextValue(); } List<String> lines = new ArrayList<>(); try { return FileUtils.readLines(f, "UTF-8"); e.printStackTrace(); } return lines; } } byte[] temp = new byte[0]; try { temp = Files.readAllBytes(Paths.get(filename)); LOGGER.error(ERROR_LOG_MSG_1, e); } return temp; } try { Path path = Paths.get(filename); Files.createDirectories(path.getParent()); LOGGER.error(ERROR_LOG_MSG_1, e); } } return FileUtils.deleteQuietly(fileToDelete); } }