A PHP Error was encountered

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

Untitled - Stikked
From Scorching Hog, 10 Years ago, written in PHP.
Embed
  1. TagFilterService:
  2.  
  3.         /**
  4.          * Return true if the token is not a numeric string and length of the token is equal or less than 2
  5.          *
  6.          * @param $token
  7.          * @return bool
  8.          */
  9.         private function isTokenShort($token) {
  10.                 return (!is_numeric($token) && strlen($token) <= self::SHORT_TOKEN);
  11.         }
  12.  
  13. TagService:
  14.  
  15.         /**
  16.          * Creates tag title from tokens, skipping those that are too short or
  17.          * with high token support.
  18.          *
  19.          * @param $tag
  20.          * @return string
  21.          */
  22.         private function createTagTitle($tag) {
  23.                 $tokens = [];
  24.  
  25.                 foreach ($tag['tokens'] as $i => $token) {
  26.                         if (!((strlen($token) <= 2 && !is_numeric($token)) || ($tag['tokenSupport'][$i] > self::TOKEN_SUPPORT_THRESHOLD))) {
  27.                                 $tokens[] = $token;
  28.                         }
  29.                 }
  30.  
  31.                 return implode(' ', $tokens);
  32.         }
  33.  
  34.