Changeset 485 for trunk/xcache.c
- Timestamp:
- 12/28/2007 10:16:12 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r477 r485 609 609 xc_entry_data_php_t *p = xce->data.php; 610 610 zend_op_array *old_active_op_array = CG(active_op_array); 611 ALLOCA_FLAG(use_heap) 612 611 613 #ifndef ZEND_ENGINE_2 612 614 /* new ptr which is stored inside CG(class_table) */ 613 xc_cest_t **new_cest_ptrs = (xc_cest_t **) do_alloca(sizeof(xc_cest_t*) * p->classinfo_cnt);615 xc_cest_t **new_cest_ptrs = (xc_cest_t **)my_do_alloca(sizeof(xc_cest_t*) * p->classinfo_cnt, use_heap); 614 616 #endif 615 617 … … 672 674 673 675 #ifndef ZEND_ENGINE_2 674 free_alloca(new_cest_ptrs);676 my_free_alloca(new_cest_ptrs, use_heap); 675 677 #endif 676 678 CG(active_op_array) = old_active_op_array; … … 716 718 int size = strlen(include_path) + 1; 717 719 char tokens[] = { DEFAULT_DIR_SEPARATOR, '\0' }; 718 719 paths = (char *)do_alloca(size); 720 ALLOCA_FLAG(use_heap) 721 722 paths = (char *)my_do_alloca(size, use_heap); 720 723 memcpy(paths, include_path, size); 721 724 … … 725 728 } 726 729 if (VCWD_STAT(filepath, pbuf) == 0) { 727 free_alloca(paths);730 my_free_alloca(paths, use_heap); 728 731 return SUCCESS; 729 732 } 730 733 } 731 734 732 free_alloca(paths);735 my_free_alloca(paths, use_heap); 733 736 734 737 return FAILURE; … … 888 891 php_stream *stream; 889 892 xc_hash_value_t hv; 893 ulong old_rsid = EG(regular_list).nNextFreeElement; 890 894 891 895 stream = php_stream_open_wrapper(xce->name.str.val, "rb", USE_PATH | REPORT_ERRORS | ENFORCE_SAFE_MODE | STREAM_DISABLE_OPEN_BASEDIR, NULL); … … 901 905 902 906 php_stream_close(stream); 907 if (EG(regular_list).nNextFreeElement = old_rsid + 1) { 908 EG(regular_list).nNextFreeElement = old_rsid; 909 } 903 910 904 911 if (n < 0) {

