Skip to content

Commit 3ac9616

Browse files
committed
review
1 parent 4831fc6 commit 3ac9616

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Zend/zend.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,6 @@ ZEND_API ZEND_COLD void zend_error_zstr_at(
15021502
info->message = zend_string_copy(message);
15031503
EG(errors->size)++;
15041504
if (EG(errors->size) >= EG(errors->capacity)) {
1505-
// not sure we can get high number of errors so safe `might be` over cautious here
15061505
uint32_t capacity = EG(errors->capacity) + (EG(errors->capacity) >> 1);
15071506
EG(errors) = safe_perealloc(EG(errors), sizeof(zend_error_info *), capacity, XtOffsetOf(struct zend_err_buf, buf), true);
15081507
EG(errors->capacity) = capacity;

Zend/zend_globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ struct _zend_executor_globals {
305305
* and their processing is delayed until zend_emit_recorded_errors()
306306
* is called or a fatal diagnostic is emitted. */
307307
bool record_errors;
308+
struct zend_err_buf *errors;
308309

309310
/* Override filename or line number of thrown errors and exceptions */
310311
zend_string *filename_override;
@@ -327,7 +328,6 @@ struct _zend_executor_globals {
327328
HashTable callable_convert_cache;
328329

329330
void *reserved[ZEND_MAX_RESERVED_RESOURCES];
330-
struct zend_err_buf *errors;
331331
};
332332

333333
#define EG_FLAGS_INITIAL (0)

0 commit comments

Comments
 (0)