rfc:error-optimizations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:error-optimizations [2010/08/23 20:19] kallerfc: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: 0;         int error_stack_size: 0;
 +        ...
 </code> </code>
  
Line 50: 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 57: 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 {
-        ...+        /* BC code */
 } }
 </code> </code>
Line 71: Line 76:
         char *error;         char *error;
  
-        /* Dispatch to formatting function, and copy it into, the "error" variable */+        /* dispatch to formatting function, and copy it into, the "error" variable */
  
         RETURN_STRING(error, 0, 1);         RETURN_STRING(error, 0, 1);
 } else { } else {
-        ...+        /* BC code */
 } }
 </code> </code>
rfc/error-optimizations.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1