A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /www/wwwroot/paste.wenyinos/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /www/wwwroot/paste.wenyinos/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/paste.wenyinos/application/models/Pastes.php
Line: 517
Function: syntax

File: /www/wwwroot/paste.wenyinos/application/controllers/Main.php
Line: 693
Function: getPaste

File: /www/wwwroot/paste.wenyinos/index.php
Line: 315
Function: require_once

未命名 - 玟茵开源社区代码粘贴板
来自 Chartreuse Lemur, 1 年 前, 写在 C.
[paste_expire] 1 秒.
嵌入
  1. int main(int argc, const char** argv) {
  2.   setvbuf(stdout, NULL, _IONBF, 0);
  3.   int portnum = 9988;
  4.   if (argc >= 2) {
  5.     portnum = atoi(argv[1]);
  6.   }
  7.   printf("Listening on port %d\n", portnum);
  8.   int sockfd = listen_inet_socket(portnum);
  9.   struct sockaddr_in peer_addr;
  10.   socklen_t peer_addr_len = sizeof(peer_addr);
  11.   int newsockfd = accept(sockfd, (struct sockaddr*)&peer_addr, &peer_addr_len);
  12.   if (newsockfd < 0) {
  13.     perror_die("ERROR on accept");
  14.   }
  15.   report_peer_connected(&peer_addr, peer_addr_len);
  16.   while (1) {
  17.     uint8_t buf[1024];
  18.     printf("Calling recv...\n");
  19.     int len = recv(newsockfd, buf, sizeof buf, 0);
  20.     if (len < 0) {
  21.       perror_die("recv");
  22.     } else if (len == 0) {
  23.       printf("Peer disconnected; I'm done.\n");
  24.       break;
  25.     }
  26.     printf("recv returned %d bytes\n", len);
  27.   }
  28.   close(newsockfd);
  29.   close(sockfd);
  30.   return 0;
  31. }
captcha