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
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\View\Renderer; use Zend\View\Exception; use Zend\View\Model\FeedModel; use Zend\View\Model\ModelInterface as Model; use Zend\View\Resolver\ResolverInterface as Resolver; /** * Class for Zend\View\Strategy\FeedStrategy compatible template engine implementations */ class FeedRenderer implements RendererInterface { /** * @var Resolver */ protected $resolver; /** * @var string 'rss' or 'atom'; defaults to 'rss' */ protected $feedType = 'rss'; /** * Return the template engine object, if any * * If using a third-party template engine, such as Smarty, patTemplate, * phplib, etc, return the template engine object. Useful for calling * methods on these objects, such as for setting filters, modifiers, etc. * * @return mixed */ public function getEngine() { return $this; } /** * Set the resolver used to map a template name to a resource the renderer may consume. * * @todo Determine use case for resolvers for feeds * @param Resolver $resolver * @return FeedRenderer */ public function setResolver(Resolver $resolver) { $this->resolver = $resolver; return $this; } /** * Renders values as JSON * * @todo Determine what use case exists for accepting only $nameOrModel * @param string|Model $nameOrModel The script/resource process, or a view model * @param null|array|\ArrayAccess $values Values to use during rendering * @throws Exception\InvalidArgumentException * @return string The script output. */ public function render($nameOrModel, $values = null) { if ($nameOrModel instanceof Model) { // Use case 1: View Model provided // Non-FeedModel: cast to FeedModel if (!$nameOrModel instanceof FeedModel) { $vars = $nameOrModel->getVariables(); $options = $nameOrModel->getOptions(); $type = $this->getFeedType(); $type = $options['feed_type']; } else { $this->setFeedType($type); } } // Use case 2: string $nameOrModel + array|Traversable|Feed $values } else { // Use case 3: failure '%s expects a ViewModel or a string feed type as the first argument; received "%s"', __METHOD__, )); } // Get feed and type $feed = $nameOrModel->getFeed(); $type = $nameOrModel->getFeedType(); if (!$type) { $type = $this->getFeedType(); } else { $this->setFeedType($type); } // Render feed return $feed->export($type); } /** * Set feed type ('rss' or 'atom') * * @param string $feedType * @throws Exception\InvalidArgumentException * @return FeedRenderer */ public function setFeedType($feedType) { '%s expects a string of either "rss" or "atom"', __METHOD__ )); } $this->feedType = $feedType; return $this; } /** * Get feed type * * @return string */ public function getFeedType() { return $this->feedType; } }