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

Reproduce #3943 - Stikked
From Pedro Gimeno, 6 Years ago, written in C++.
Embed
  1. #include <stdint.h>
  2. #include <assert.h>
  3.  
  4. typedef uint8_t u8;
  5. typedef int32_t s32;
  6. typedef uint32_t u32;
  7. typedef float f32;
  8.  
  9. #define FIXEDPOINT_FACTOR 1000.0f
  10.  
  11. inline u32 readU32(const u8 *data)
  12. {
  13.   return
  14.     ((u32)data[0] << 24) | ((u32)data[1] << 16) |
  15.     ((u32)data[2] <<  8) | ((u32)data[3] <<  0);
  16. }
  17.  
  18. inline s32 readS32(const u8 *data)
  19. {
  20.         return (s32)readU32(data);
  21. }
  22.  
  23. inline f32 readF1000(const u8 *data)
  24. {
  25.   return (f32)readS32(data) / FIXEDPOINT_FACTOR;
  26. }
  27.  
  28. #define UASSERT assert
  29.  
  30. static const u8 test_serialized_data[] = {
  31.         0x00, 0x00, 0xd1, 0x1e,
  32. };
  33.  
  34. int main()
  35. {
  36.   const u8 *is = test_serialized_data;
  37.  
  38.   UASSERT(readF1000(is) == 53.534f);
  39.   return 0;
  40. }
  41.