Changeset 1027
- Timestamp:
- 2012-07-22T08:57:08+02:00 (10 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
mod_coverager/xc_coverager.c (modified) (1 diff)
-
mod_disassembler/xc_disassembler.c (modified) (1 diff)
-
processor/processor.m4 (modified) (4 diffs)
-
xcache.c (modified) (3 diffs)
-
xcache.h (modified) (1 diff)
-
xcache/xc_compatibility.h (modified) (1 diff)
-
xcache/xc_lock.c (modified) (1 diff)
-
xcache/xc_lock.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mod_coverager/xc_coverager.c
r1026 r1027 23 23 24 24 #include "ext/standard/info.h" 25 #include "zend_compile.h" 25 26 26 27 typedef HashTable *coverager_t; -
trunk/mod_disassembler/xc_disassembler.c
r1026 r1027 1 1 #include "xc_disassembler.h" 2 2 #include "xcache.h" 3 #include "xcache/xc_ini.h" 3 4 #include "xcache/xc_utils.h" 4 5 #include "xcache/xc_sandbox.h" -
trunk/processor/processor.m4
r964 r1027 654 654 #endif 655 655 case ZEND_JMP: 656 #ifdef ZEND_ENGINE_2 656 657 assert(Z_OP(src->op1).jmp_addr >= processor->active_op_array_src->opcodes && Z_OP(src->op1).jmp_addr - processor->active_op_array_src->opcodes < processor->active_op_array_src->last); 657 658 Z_OP(dst->op1).jmp_addr = processor->active_op_array_dst->opcodes + (Z_OP(src->op1).jmp_addr - processor->active_op_array_src->opcodes); 658 659 assert(Z_OP(dst->op1).jmp_addr >= processor->active_op_array_dst->opcodes && Z_OP(dst->op1).jmp_addr - processor->active_op_array_dst->opcodes < processor->active_op_array_dst->last); 660 #endif 659 661 break; 660 662 … … 669 671 case ZEND_JMP_SET_VAR: 670 672 #endif 673 #ifdef ZEND_ENGINE_2 671 674 assert(Z_OP(src->op2).jmp_addr >= processor->active_op_array_src->opcodes && Z_OP(src->op2).jmp_addr - processor->active_op_array_src->opcodes < processor->active_op_array_src->last); 672 675 Z_OP(dst->op2).jmp_addr = processor->active_op_array_dst->opcodes + (Z_OP(src->op2).jmp_addr - processor->active_op_array_src->opcodes); 673 676 assert(Z_OP(dst->op2).jmp_addr >= processor->active_op_array_dst->opcodes && Z_OP(dst->op2).jmp_addr - processor->active_op_array_dst->opcodes < processor->active_op_array_dst->last); 677 #endif 674 678 break; 675 679 … … 753 757 #endif 754 758 case ZEND_JMP: 759 #ifdef ZEND_ENGINE_2 755 760 Z_OP(opline->op1).jmp_addr = &dst->opcodes[Z_OP(opline->op1).jmp_addr - src->opcodes]; 761 #endif 756 762 break; 757 763 … … 766 772 case ZEND_JMP_SET_VAR: 767 773 #endif 774 #ifdef ZEND_ENGINE_2 768 775 Z_OP(opline->op2).jmp_addr = &dst->opcodes[Z_OP(opline->op2).jmp_addr - src->opcodes]; 776 #endif 769 777 break; 770 778 -
trunk/xcache.c
r1026 r1027 3132 3132 /* {{{ proto bool xcache_get_isref(mixed variable) 3133 3133 XCache internal uses only: Check if variable data is marked referenced */ 3134 #ifdef ZEND_BEGIN_ARG_INFO_EX 3134 3135 ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_get_isref, 0, 0, 1) 3135 3136 ZEND_ARG_INFO(1, variable) 3136 3137 ZEND_END_ARG_INFO() 3138 #else 3139 static unsigned char arginfo_xcache_get_isref[] = { 1, BYREF_FORCE }; 3140 #endif 3137 3141 3138 3142 PHP_FUNCTION(xcache_get_isref) … … 3657 3661 if (xc_php_size) { 3658 3662 ptr = _php_math_number_format(xc_php_size, 0, '.', ','); 3659 snprintf(buf, sizeof(buf), "enabled, %s bytes, % d split(s), with %dslots each", ptr, xc_php_hcache.size, xc_php_hentry.size);3663 snprintf(buf, sizeof(buf), "enabled, %s bytes, %lu split(s), with %lu slots each", ptr, xc_php_hcache.size, xc_php_hentry.size); 3660 3664 php_info_print_table_row(2, "Opcode Cache", buf); 3661 3665 efree(ptr); … … 3666 3670 if (xc_var_size) { 3667 3671 ptr = _php_math_number_format(xc_var_size, 0, '.', ','); 3668 snprintf(buf, sizeof(buf), "enabled, %s bytes, % d split(s), with %dslots each", ptr, xc_var_hcache.size, xc_var_hentry.size);3672 snprintf(buf, sizeof(buf), "enabled, %s bytes, %lu split(s), with %lu slots each", ptr, xc_var_hcache.size, xc_var_hentry.size); 3669 3673 php_info_print_table_row(2, "Variable Cache", buf); 3670 3674 efree(ptr); -
trunk/xcache.h
r991 r1027 11 11 12 12 #include <php.h> 13 #include <zend_compile.h>14 #include <zend_API.h>15 #include <zend.h>16 #include "php_ini.h"17 #include "zend_hash.h"18 13 19 14 #ifdef HAVE_CONFIG_H -
trunk/xcache/xc_compatibility.h
r1026 r1027 233 233 234 234 #ifndef PHP_FE_END 235 # define PHP_FE_END {NULL, NULL, NULL} 235 # ifdef ZEND_ENGINE_2 236 # define PHP_FE_END {NULL, NULL, NULL, 0, 0} 237 # else 238 # define PHP_FE_END {NULL, NULL, NULL} 239 # endif 236 240 #endif 237 241 -
trunk/xcache/xc_lock.c
r982 r1027 1 #include "xc_lock.h" 2 #include "xcache.h" 1 3 #include <stdio.h> 2 4 #include <string.h> 3 5 #include <stdlib.h> 4 6 5 #include <php.h>6 7 #ifndef ZEND_WIN32 7 8 typedef int HANDLE; -
trunk/xcache/xc_lock.h
r982 r1027 1 #ifndef XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF 2 #define XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF 3 4 #if _MSC_VER > 1000 5 #pragma once 6 #endif // _MSC_VER > 1000 7 1 8 typedef struct _xc_lock_t xc_lock_t; 2 9 … … 10 17 #define xc_lock(fd) xc_fcntl_lock(fd) 11 18 #define xc_unlock(fd) xc_fcntl_unlock(fd) 19 20 #endif /* XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF */
Note: See TracChangeset
for help on using the changeset viewer.

