Changeset 11
- Timestamp:
- 06/12/09 11:13:50 (15 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
bytekit.c (modified) (6 diffs)
-
php_bytekit.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bytekit.c
r10 r11 1668 1668 HashTable *dependencies = NULL; 1669 1669 long flags = 0; 1670 zend_execute_data *orig_execute_data; 1670 1671 1671 1672 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|zz", &zfilename, &zerrors, &zoptions) == FAILURE) { … … 1719 1720 zend_hash_get_current_data(dependencies, (void **)&zdependency) == SUCCESS; 1720 1721 zend_hash_move_forward(dependencies)) { 1721 1722 1723 orig_execute_data = EG(current_execute_data); 1724 1722 1725 zend_try { 1723 1726 ops = compile_filename(ZEND_INCLUDE, *zdependency TSRMLS_CC); … … 1725 1728 ops = NULL; 1726 1729 } zend_end_try(); 1730 1731 EG(current_execute_data) = orig_execute_data; 1727 1732 1728 1733 /* in case of an error clean up and exit */ … … 1747 1752 dependencies_num_classes = zend_hash_num_elements(EG(class_table)); 1748 1753 1754 orig_execute_data = EG(current_execute_data); 1755 1749 1756 zend_try { 1750 1757 … … 1756 1763 file_handle.opened_path = NULL; 1757 1764 file_handle.handle.fp = NULL; 1758 1765 1759 1766 ops = zend_compile_file(&file_handle, ZEND_INCLUDE TSRMLS_CC); 1760 1767 … … 1764 1771 ops = NULL; 1765 1772 } zend_end_try(); 1773 1774 EG(current_execute_data) = orig_execute_data; 1775 1766 1776 1767 1777 /* this is again not 100% thread-safe but better than nothing */ -
trunk/php_bytekit.h
r8 r11 22 22 #define PHP_BYTEKIT_H 23 23 24 #define BYTEKIT_VERSION "0.1. 0"24 #define BYTEKIT_VERSION "0.1.1" 25 25 26 26 #ifdef ZTS
