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

t - Stikked
From Table, 10 Years ago, written in C++.
Embed
  1.  #include <boost/python.hpp>
  2. #include <boost/function.hpp>
  3. #include <iostream>
  4. using namespace std;
  5. using namespace boost::python;
  6.  
  7.  
  8. int main()
  9. {
  10.         Py_Initialize();
  11.  
  12.         try {
  13.                 PyRun_SimpleString("result = 5 ** 2");
  14.  
  15.                 object module(handle<>(borrowed(PyImport_AddModule("__main__"))));
  16.                 object dictionary = module.attr("__dict__");
  17.                 object result = dictionary["result"];
  18.                 int result_value = extract<int>(result);
  19.  
  20.                 std::cout << result_value << std::endl;
  21.  
  22.                 dictionary["result"] = 20;
  23.  
  24.                 PyRun_SimpleString("print result");
  25.         }
  26.         catch (error_already_set) {
  27.                 PyErr_Print();
  28.         }
  29.  
  30.         Py_Finalize();
  31.         return 0;
  32. }