Skip to content

Commit 6f78de0

Browse files
committed
Use type instead of constant
1 parent c5b69dc commit 6f78de0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_default_classes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static void zend_error_va(int type, const char *file, uint lineno, const char *f
465465
va_list args;
466466

467467
va_start(args, format);
468-
zend_error_cb(E_ERROR, file, lineno, format, args);
468+
zend_error_cb(type, file, lineno, format, args);
469469
va_end(args);
470470
}
471471

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static void zend_error_va(int type, const char *file, uint lineno, const char *f
465465
va_list args;
466466

467467
va_start(args, format);
468-
zend_error_cb(E_ERROR, file, lineno, format, args);
468+
zend_error_cb(type, file, lineno, format, args);
469469
va_end(args);
470470
}
471471

0 commit comments

Comments
 (0)