Changeset 595
- Timestamp:
- 2009-07-05T06:53:27+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/xcache.c
r593 r595 651 651 if (VCWD_STAT(filepath, pbuf) == 0) { 652 652 free_alloca(paths); 653 return 0;653 return SUCCESS; 654 654 } 655 655 } … … 657 657 free_alloca(paths); 658 658 659 return 1;659 return FAILURE; 660 660 } 661 661 /* }}} */ … … 703 703 704 704 if (!filename || !SG(request_info).path_translated) { 705 return 0; 705 return FAILURE; 706 } 707 708 if (strstr(filename, "://") != NULL) { 709 return FAILURE; 706 710 } 707 711 … … 721 725 if (IS_ABSOLUTE_PATH(filename, strlen(filename))) { 722 726 if (VCWD_STAT(filename, pbuf) != 0) { 723 return 0;727 return FAILURE; 724 728 } 725 729 goto stat_done; … … 737 741 738 742 if (VCWD_STAT(filename, pbuf) != 0) { 739 return 0;743 return FAILURE; 740 744 } 741 745 goto stat_done; … … 744 748 745 749 /* use include_path */ 746 if (xc_stat(filename, PG(include_path), pbuf TSRMLS_CC) != 0) {747 return 0;750 if (xc_stat(filename, PG(include_path), pbuf TSRMLS_CC) != SUCCESS) { 751 return FAILURE; 748 752 } 749 753 … … 753 757 delta = XG(request_time) - pbuf->st_mtime; 754 758 if (abs(delta) < 2 && !xc_test) { 755 return 0;759 return FAILURE; 756 760 } 757 761 … … 779 783 filename = expand_filepath(filename, opened_path_buffer TSRMLS_CC); 780 784 if (filename == NULL) { 781 return 0;785 return FAILURE; 782 786 } 783 787 } … … 793 797 794 798 xce->type = XC_TYPE_PHP; 795 return 1; 799 return SUCCESS; 800 } 801 /* }}} */ 802 static inline xc_hash_value_t xc_php_hash_md5(xc_entry_data_php_t *php TSRMLS_DC) /* {{{ */ 803 { 804 return HASH_STR_S(php->md5, sizeof(php->md5)); 796 805 } 797 806 /* }}} */ … … 866 875 filename = h->opened_path ? h->opened_path : h->filename; 867 876 xce.data.php = &php; 868 if ( !xc_entry_init_key_php(&xce, filename, opened_path_buffer TSRMLS_CC)) {877 if (xc_entry_init_key_php(&xce, filename, opened_path_buffer TSRMLS_CC) != SUCCESS) { 869 878 return old_compile_file(h, type TSRMLS_CC); 870 879 }
Note: See TracChangeset
for help on using the changeset viewer.

