Skip to content

Commit 537ae4f

Browse files
removed ZEND_IS_XDIGIT() (php#18926)
1 parent fc04966 commit 537ae4f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

UPGRADING.INTERNALS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ PHP 8.5 INTERNALS UPGRADE NOTES
4343
. Added the zend_update_exception_properties() function for instantiating
4444
Exception child classes. It updates the $message, $code, and $previous
4545
properties.
46+
. ZEND_IS_XDIGIT() macro was removed because it was unused and its name
47+
did not match its actual behavior.
4648

4749
========================
4850
2. Build system changes

Zend/zend_operators.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ static zend_always_inline zend_long zend_dval_to_lval_safe(double d)
156156
}
157157

158158
#define ZEND_IS_DIGIT(c) ((c) >= '0' && (c) <= '9')
159-
#define ZEND_IS_XDIGIT(c) (((c) >= 'A' && (c) <= 'F') || ((c) >= 'a' && (c) <= 'f'))
160159

161160
static zend_always_inline uint8_t is_numeric_string_ex(const char *str, size_t length, zend_long *lval,
162161
double *dval, bool allow_errors, int *oflow_info, bool *trailing_data)

0 commit comments

Comments
 (0)