root/ext/opcache/zend_accelerator_util_funcs.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2    +----------------------------------------------------------------------+
   3    | Zend OPcache                                                         |
   4    +----------------------------------------------------------------------+
   5    | Copyright (c) 1998-2016 The PHP Group                                |
   6    +----------------------------------------------------------------------+
   7    | This source file is subject to version 3.01 of the PHP license,      |
   8    | that is bundled with this package in the file LICENSE, and is        |
   9    | available through the world-wide-web at the following url:           |
  10    | http://www.php.net/license/3_01.txt                                  |
  11    | If you did not receive a copy of the PHP license and are unable to   |
  12    | obtain it through the world-wide-web, please send a note to          |
  13    | license@php.net so we can mail you a copy immediately.               |
  14    +----------------------------------------------------------------------+
  15    | Authors: Andi Gutmans <andi@zend.com>                                |
  16    |          Zeev Suraski <zeev@zend.com>                                |
  17    |          Stanislav Malyshev <stas@zend.com>                          |
  18    |          Dmitry Stogov <dmitry@zend.com>                             |
  19    +----------------------------------------------------------------------+
  20 */
  21 
  22 #ifndef ZEND_ACCELERATOR_UTIL_FUNCS_H
  23 #define ZEND_ACCELERATOR_UTIL_FUNCS_H
  24 
  25 #include "zend.h"
  26 #include "ZendAccelerator.h"
  27 
  28 void zend_accel_copy_internal_functions(void);
  29 
  30 zend_persistent_script* create_persistent_script(void);
  31 void free_persistent_script(zend_persistent_script *persistent_script, int destroy_elements);
  32 
  33 void zend_accel_free_user_functions(HashTable *ht);
  34 void zend_accel_move_user_functions(HashTable *str, HashTable *dst);
  35 
  36 zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script, int from_shared_memory);
  37 
  38 #define ADLER32_INIT 1     /* initial Adler-32 value */
  39 
  40 unsigned int zend_adler32(unsigned int checksum, signed char *buf, uint len);
  41 
  42 unsigned int zend_accel_script_checksum(zend_persistent_script *persistent_script);
  43 
  44 #endif /* ZEND_ACCELERATOR_UTIL_FUNCS_H */
  45 
  46 /*
  47  * Local variables:
  48  * tab-width: 4
  49  * c-basic-offset: 4
  50  * End:
  51  */

/* [<][>][^][v][top][bottom][index][help] */