Changeset 269
- Timestamp:
- 09/15/06 14:49:57 (3 years ago)
- Files:
-
- eaccelerator/branches/0.9.5/ChangeLog (modified) (3 diffs)
- eaccelerator/branches/0.9.5/config.m4 (modified) (2 diffs)
- eaccelerator/branches/0.9.5/ea_restore.c (modified) (6 diffs)
- eaccelerator/branches/0.9.5/ea_store.c (modified) (6 diffs)
- eaccelerator/branches/0.9.5/eaccelerator.h (modified) (2 diffs)
- eaccelerator/trunk/ChangeLog (modified) (3 diffs)
- eaccelerator/trunk/config.m4 (modified) (2 diffs)
- eaccelerator/trunk/ea_restore.c (modified) (5 diffs)
- eaccelerator/trunk/ea_store.c (modified) (6 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/branches/0.9.5/ChangeLog
r268 r269 1 2006-09-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Reverse changeset 205 (doc-comment exclusion) from Tom Regner 4 <t.regner at librics.de>. 5 1 6 2006-08-29 Hans Rakers <hans at parse dot nl> 2 7 3 * Skip disk cache creation and clean/clear actions when operating in4 shm_only mode. This fixes ticket #1658 * Skip disk cache creation and clean/clear actions when operating in 9 shm_only mode. This fixes ticket #165 5 10 6 11 2006-08-23 Hans Rakers <hans at parse dot nl> 7 12 8 * Fixes for tickets #157 and #16413 * Fixes for tickets #157 and #164 9 14 10 15 2006-08-06 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> … … 49 54 50 55 2006-07-24 Hans Rakers <hans at parse dot nl> 51 * Fix for ticket #47 and #63, related to problems restoring empty52 strings and empty string array keys from the disk cache.56 * Fix for ticket #47 and #63, related to problems restoring empty 57 strings and empty string array keys from the disk cache. 53 58 54 59 2006-07-23 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> … … 87 92 2006-06-30 Hans Rakers <hans at parse dot nl> 88 93 89 * Added ability to sort table columns by clicking on the table90 headings in the control panel91 * Quick & dirty fix for eaccelerator_clear to work with the new92 cache dir hashing. This still needs to be done for win32.93 94 eaccelerator_clean still needs some fixing to work with the95 dir hashing.94 * Added ability to sort table columns by clicking on the table 95 headings in the control panel 96 * Quick & dirty fix for eaccelerator_clear to work with the new 97 cache dir hashing. This still needs to be done for win32. 98 99 eaccelerator_clean still needs some fixing to work with the 100 dir hashing. 96 101 97 102 2006-06-27 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> eaccelerator/branches/0.9.5/config.m4
r257 r269 100 100 ]) 101 101 102 AC_ARG_WITH(eaccelerator-doc-comment-inclusion, 103 [ --with-eaccelerator-doc-comment-inclusion If you want eAccelerator to retain doc-comments in internal php structures.],[ 104 enable_doc_comment_inclusion=$withval 105 ],[ 106 enable_doc_comment_inclusion=no 107 ]) 108 102 109 dnl PHP_BUILD_SHARED 103 110 if test "$PHP_EACCELERATOR" != "no"; then … … 108 115 109 116 AC_DEFINE_UNQUOTED(EA_USERID, $ea_userid, [The userid eAccelerator will be running under.]) 110 117 118 if test "$enable_doc_comment_inclusion" = "yes"; then 119 AC_DEFINE(INCLUDE_DOC_COMMENTS, 1, [If you want eAccelerator to retain doc-comments in internal php structures (meta-programming)]) 120 fi 111 121 if test "$eaccelerator_crash_detection" = "yes"; then 112 122 AC_DEFINE(WITH_EACCELERATOR_CRASH_DETECTION, 1, [Define if you like to release eAccelerator resources on PHP crash]) eaccelerator/branches/0.9.5/ea_restore.c
r260 r269 250 250 #endif 251 251 FIXUP(from->filename); 252 #ifdef INCLUDE_DOC_COMMENTS 253 #ifdef ZEND_ENGINE_2 254 FIXUP(from->doc_comment); 255 #endif 256 #endif 252 257 } 253 258 … … 258 263 #ifdef ZEND_ENGINE_2 259 264 FIXUP(from->filename); 265 #ifdef INCLUDE_DOC_COMMENTS 266 FIXUP(from->doc_comment); 267 #endif 260 268 fixup_zval_hash(&from->constants_table); 261 269 fixup_zval_hash(&from->default_properties); … … 638 646 to->line_start = from->line_start; 639 647 to->line_end = from->line_end; 648 #ifdef INCLUDE_DOC_COMMENTS 649 to->doc_comment_len = from->doc_comment_len; 650 to->doc_comment = from->doc_comment; 651 #else 640 652 to->doc_comment_len = 0; 641 653 to->doc_comment = NULL; 654 #endif 642 655 #else 643 656 to->uses_globals = from->uses_globals; … … 693 706 memcpy(to->name, from->name, from->name_length + 1); 694 707 #ifdef ZEND_ENGINE_2_1 708 #ifdef INCLUDE_DOC_COMMENTS 709 if (from->doc_comment != NULL) { 710 to->doc_comment = emalloc(from->doc_comment_len + 1); 711 memcpy(to->doc_comment, from->doc_comment, from->doc_comment_len + 1); 712 } 713 #else 695 714 to->doc_comment_len = 0; 696 715 to->doc_comment = NULL; 716 #endif 697 717 #endif 698 718 return to; … … 834 854 to->line_start = from->line_start; 835 855 to->line_end = from->line_end; 856 #ifdef INCLUDE_DOC_COMMENTS 857 to->doc_comment_len = from->doc_comment_len; 858 #else 836 859 to->doc_comment_len = 0; 837 860 to->doc_comment = NULL; 861 #endif 838 862 /* if (from->filename != NULL) { 839 863 size_t len = strlen(from->filename) + 1; … … 842 866 }*/ 843 867 to->filename = from->filename; 868 #ifdef INCLUDE_DOC_COMMENTS 869 if (from->doc_comment != NULL) { 870 to->doc_comment = emalloc(from->doc_comment_len + 1); 871 memcpy(to->doc_comment, from->doc_comment, from->doc_comment_len + 1); 872 } 873 #endif 844 874 845 875 /* restore constants table */ eaccelerator/branches/0.9.5/ea_store.c
r231 r269 79 79 EAG(mem) += sizeof(zend_property_info); 80 80 calc_string(from->name, from->name_length + 1 TSRMLS_CC); 81 #ifdef INCLUDE_DOC_COMMENTS 82 #ifdef ZEND_ENGINE_2_1 83 if (from->doc_comment != NULL) { 84 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 85 } 86 #endif 87 #endif 81 88 } 82 89 … … 255 262 if (from->filename != NULL) 256 263 calc_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 264 #ifdef INCLUDE_DOC_COMMENTS 265 #ifdef ZEND_ENGINE_2 266 if (from->doc_comment != NULL) 267 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 268 #endif 269 #endif 257 270 } 258 271 … … 274 287 if (from->filename != NULL) 275 288 calc_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 289 #ifdef INCLUDE_DOC_COMMENTS 290 if (from->doc_comment != NULL) 291 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 292 #endif 276 293 277 294 calc_zval_hash(&from->constants_table); … … 715 732 to->line_start = from->line_start; 716 733 to->line_end = from->line_end; 734 #ifdef INCLUDE_DOC_COMMENTS 735 to->doc_comment_len = from->doc_comment_len; 736 if (from->doc_comment != NULL) 737 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 738 #endif 717 739 #endif 718 740 return to; … … 729 751 to->name = store_string(from->name, from->name_length + 1 TSRMLS_CC); 730 752 #ifdef ZEND_ENGINE_2_1 753 #ifdef INCLUDE_DOC_COMMENTS 754 to->doc_comment_len = from->doc_comment_len; 755 if (from->doc_comment != NULL) { 756 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 757 } 758 #else 731 759 to->doc_comment_len = 0; 732 760 to->doc_comment = NULL; 761 #endif 733 762 #endif 734 763 return to; … … 874 903 to->line_start = from->line_start; 875 904 to->line_end = from->line_end; 905 #ifdef INCLUDE_DOC_COMMENTS 906 to->doc_comment_len = from->doc_comment_len; 907 #endif 876 908 877 909 if (from->filename != NULL) 878 910 to->filename = store_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 911 #ifdef INCLUDE_DOC_COMMENTS 912 if (from->doc_comment != NULL) 913 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 914 #endif 879 915 880 916 store_zval_hash(&to->constants_table, &from->constants_table); eaccelerator/branches/0.9.5/eaccelerator.h
r266 r269 228 228 zend_uint line_start; 229 229 zend_uint line_end; 230 #ifdef INCLUDE_DOC_COMMENTS 231 char *doc_comment; 232 zend_uint doc_comment_len; 233 #endif 230 234 #endif 231 235 } eaccelerator_op_array; … … 251 255 zend_uint line_start; 252 256 zend_uint line_end; 257 #ifdef INCLUDE_DOC_COMMENTS 258 char *doc_comment; 259 zend_uint doc_comment_len; 260 #endif 253 261 #endif 254 262 } eaccelerator_class_entry; eaccelerator/trunk/ChangeLog
r267 r269 1 2006-09-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Reverse changeset 205 (doc-comment exclusion) from Tom Regner 4 <t.regner at librics.de>. 5 1 6 2006-08-29 Hans Rakers <hans at parse dot nl> 2 7 3 * Skip disk cache creation and clean/clear actions when operating in4 shm_only mode. This fixes ticket #1658 * Skip disk cache creation and clean/clear actions when operating in 9 shm_only mode. This fixes ticket #165 5 10 6 11 2006-08-23 Hans Rakers <hans at parse dot nl> 7 12 8 * Fixes for tickets #157 and #16413 * Fixes for tickets #157 and #164 9 14 10 15 2006-08-06 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> … … 79 84 80 85 2006-07-24 Hans Rakers <hans at parse dot nl> 81 * Fix for ticket #47 and #63, related to problems restoring empty82 strings and empty string array keys from the disk cache.86 * Fix for ticket #47 and #63, related to problems restoring empty 87 strings and empty string array keys from the disk cache. 83 88 84 89 2006-07-23 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> … … 117 122 2006-06-30 Hans Rakers <hans at parse dot nl> 118 123 119 * Added ability to sort table columns by clicking on the table120 headings in the control panel121 * Quick & dirty fix for eaccelerator_clear to work with the new122 cache dir hashing. This still needs to be done for win32.123 124 eaccelerator_clean still needs some fixing to work with the125 dir hashing.124 * Added ability to sort table columns by clicking on the table 125 headings in the control panel 126 * Quick & dirty fix for eaccelerator_clear to work with the new 127 cache dir hashing. This still needs to be done for win32. 128 129 eaccelerator_clean still needs some fixing to work with the 130 dir hashing. 126 131 127 132 2006-06-27 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> eaccelerator/trunk/config.m4
r259 r269 89 89 ]) 90 90 91 AC_ARG_WITH(eaccelerator-doc-comment-inclusion, 92 [ --with-eaccelerator-doc-comment-inclusion If you want eAccelerator to retain doc-comments in internal php structures.],[ 93 enable_doc_comment_inclusion=$withval 94 ],[ 95 enable_doc_comment_inclusion=no 96 ]) 97 91 98 dnl PHP_BUILD_SHARED 92 99 if test "$PHP_EACCELERATOR" != "no"; then … … 97 104 98 105 AC_DEFINE_UNQUOTED(EA_USERID, $ea_userid, [The userid eAccelerator will be running under.]) 99 106 107 if test "$enable_doc_comment_inclusion" = "yes"; then 108 AC_DEFINE(INCLUDE_DOC_COMMENTS, 1, [If you want eAccelerator to retain doc-comments in internal php structures (meta-programming)]) 109 fi 100 110 if test "$eaccelerator_crash_detection" = "yes"; then 101 111 AC_DEFINE(WITH_EACCELERATOR_CRASH_DETECTION, 1, [Define if you like to release eAccelerator resources on PHP crash]) eaccelerator/trunk/ea_restore.c
r265 r269 240 240 #endif 241 241 FIXUP(from->filename); 242 #ifdef INCLUDE_DOC_COMMENTS 243 #ifdef ZEND_ENGINE_2 244 FIXUP(from->doc_comment); 245 #endif 246 #endif 242 247 } 243 248 … … 604 609 to->line_start = from->line_start; 605 610 to->line_end = from->line_end; 611 #ifdef INCLUDE_DOC_COMMENTS 612 to->doc_comment_len = from->doc_comment_len; 613 to->doc_comment = from->doc_comment; 614 #else 606 615 to->doc_comment_len = 0; 607 616 to->doc_comment = NULL; 617 #endif 608 618 #else 609 619 to->uses_globals = from->uses_globals; … … 658 668 memcpy(to->name, from->name, from->name_length + 1); 659 669 #ifdef ZEND_ENGINE_2_1 670 #ifdef INCLUDE_DOC_COMMENTS 671 if (from->doc_comment != NULL) { 672 to->doc_comment = emalloc(from->doc_comment_len + 1); 673 memcpy(to->doc_comment, from->doc_comment, from->doc_comment_len + 1); 674 } 675 #else 660 676 to->doc_comment_len = 0; 661 677 to->doc_comment = NULL; … … 805 821 to->line_start = from->line_start; 806 822 to->line_end = from->line_end; 823 #ifdef INCLUDE_DOC_COMMENTS 824 to->doc_comment_len = from->doc_comment_len; 825 #else 807 826 to->doc_comment_len = 0; 808 827 to->doc_comment = NULL; 828 #endif 809 829 /* if (from->filename != NULL) { 810 830 size_t len = strlen(from->filename) + 1; … … 813 833 }*/ 814 834 to->filename = from->filename; 835 #ifdef INCLUDE_DOC_COMMENTS 836 if (from->doc_comment != NULL) { 837 to->doc_comment = emalloc(from->doc_comment_len + 1); 838 memcpy(to->doc_comment, from->doc_comment, from->doc_comment_len + 1); 839 } 840 #endif 815 841 816 842 /* restore constants table */ eaccelerator/trunk/ea_store.c
r255 r269 78 78 EAG(mem) += sizeof(zend_property_info); 79 79 calc_string(from->name, from->name_length + 1 TSRMLS_CC); 80 #ifdef INCLUDE_DOC_COMMENTS 81 #ifdef ZEND_ENGINE_2_1 82 if (from->doc_comment != NULL) { 83 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 84 } 85 #endif 86 #endif 80 87 } 81 88 #endif … … 222 229 if (from->filename != NULL) 223 230 calc_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 231 #ifdef INCLUDE_DOC_COMMENTS 232 #ifdef ZEND_ENGINE_2 233 if (from->doc_comment != NULL) 234 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 235 #endif 236 #endif 224 237 } 225 238 … … 241 254 if (from->filename != NULL) 242 255 calc_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 256 #ifdef INCLUDE_DOC_COMMENTS 257 if (from->doc_comment != NULL) 258 calc_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 259 #endif 243 260 244 261 calc_zval_hash(&from->constants_table); … … 662 679 to->line_start = from->line_start; 663 680 to->line_end = from->line_end; 681 #ifdef INCLUDE_DOC_COMMENTS 682 to->doc_comment_len = from->doc_comment_len; 683 if (from->doc_comment != NULL) 684 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 685 #endif 664 686 #endif 665 687 return to; … … 676 698 to->name = store_string(from->name, from->name_length + 1 TSRMLS_CC); 677 699 #ifdef ZEND_ENGINE_2_1 700 #ifdef INCLUDE_DOC_COMMENTS 701 to->doc_comment_len = from->doc_comment_len; 702 if (from->doc_comment != NULL) { 703 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 704 } 705 #else 678 706 to->doc_comment_len = 0; 679 707 to->doc_comment = NULL; 708 #endif 680 709 #endif 681 710 return to; … … 825 854 to->line_start = from->line_start; 826 855 to->line_end = from->line_end; 856 #ifdef INCLUDE_DOC_COMMENTS 857 to->doc_comment_len = from->doc_comment_len; 858 #endif 827 859 828 860 if (from->filename != NULL) 829 861 to->filename = store_string(from->filename, strlen(from->filename) + 1 TSRMLS_CC); 862 #ifdef INCLUDE_DOC_COMMENTS 863 if (from->doc_comment != NULL) 864 to->doc_comment = store_string(from->doc_comment, from->doc_comment_len + 1 TSRMLS_CC); 865 #endif 830 866 831 867 store_zval_hash(&to->constants_table, &from->constants_table); eaccelerator/trunk/eaccelerator.h
r266 r269 230 230 zend_uint line_start; 231 231 zend_uint line_end; 232 #ifdef INCLUDE_DOC_COMMENTS 233 char *doc_comment; 234 zend_uint doc_comment_len; 235 #endif 232 236 #endif 233 237 } ea_op_array; … … 253 257 zend_uint line_start; 254 258 zend_uint line_end; 259 #ifdef INCLUDE_DOC_COMMENTS 260 char *doc_comment; 261 zend_uint doc_comment_len; 255 262 #endif 256 263 } ea_class_entry;