rfc:error-optimizations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:error-optimizations [2010/08/23 20:17] – kalle | rfc:error-optimizations [2010/08/23 22:15] – kalle | ||
---|---|---|---|
Line 22: | Line 22: | ||
zend_error_arguments error_stack[]; | zend_error_arguments error_stack[]; | ||
int error_stack_size: | int error_stack_size: | ||
+ | ... | ||
</ | </ | ||
- | The new structure, " | + | The new structure, " |
<code c> | <code c> | ||
Line 30: | Line 31: | ||
/* Message format */ | /* Message format */ | ||
const char *format; | const char *format; | ||
+ | |||
+ | /* Error type */ | ||
+ | const short type; | ||
/* File, and line number, if any */ | /* File, and line number, if any */ | ||
Line 47: | Line 51: | ||
zend_error_arguments arguments; | zend_error_arguments arguments; | ||
- | ... | + | /* put the data into the arguments structure */ |
if (EG(error_stack_enabled) && EG(error_stack_logging)) { | if (EG(error_stack_enabled) && EG(error_stack_logging)) { | ||
Line 54: | Line 58: | ||
if (EG(error_stack_logging)) { | if (EG(error_stack_logging)) { | ||
/* dispatch to error logging hook */ | /* dispatch to error logging hook */ | ||
+ | } else { | ||
+ | /* no logging, increase the stack size */ | ||
+ | |||
+ | ++EG(error_stack_size); | ||
} | } | ||
} else { | } else { | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 68: | Line 76: | ||
char *error; | char *error; | ||
- | /* Dispatch | + | /* dispatch |
RETURN_STRING(error, | RETURN_STRING(error, | ||
} else { | } else { | ||
- | | + | |
} | } | ||
</ | </ |
rfc/error-optimizations.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1