Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- haru-1.0.0/haru.c 2008-11-19 08:48:57.000000000 +0000
- +++ haru.c 2010-08-25 12:10:26.000000000 +0000
- @@ -116,26 +116,29 @@
- #if PHP_MAJOR_VERSION < 6
- #define HARU_CHECK_FILE(filename) \
- do { \
- - php_set_error_handling(EH_THROW, ce_haruexception TSRMLS_CC); \
- + zend_error_handling error_handling; \
- + zend_replace_error_handling(EH_THROW, ce_haruexception, &error_handling TSRMLS_CC); \
- if (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { \
- - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); \
- + zend_restore_error_handling(&error_handling TSRMLS_CC); \
- return; \
- } \
- if (php_check_open_basedir(filename TSRMLS_CC)) { \
- - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); \
- + zend_restore_error_handling(&error_handling TSRMLS_CC); \
- return; \
- } \
- - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); \
- + zend_restore_error_handling(&error_handling TSRMLS_CC); \
- } while(0)
- #else
- #define HARU_CHECK_FILE(filename) \
- do { \
- - php_set_error_handling(EH_THROW, ce_haruexception TSRMLS_CC); \
- + zend_error_handling error_handling; \
- + zend_replace_error_handling(EH_THROW, ce_haruexception, &error_handling TSRMLS_CC); \
- if (php_check_open_basedir(filename TSRMLS_CC)) { \
- - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); \
- + zend_restore_error_handling(&error_handling TSRMLS_CC); \
- return; \
- } \
- - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); \
- + zend_restore_error_handling(&error_handling TSRMLS_CC); \
- + } while(0)
- } while(0)
- #endif
Advertisement
RAW Paste Data
Copied
Advertisement