We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df25a4 commit d5c5b9fCopy full SHA for d5c5b9f
ext/json/json_encoder.c
@@ -601,7 +601,7 @@ zend_result php_json_escape_string(
601
int mask = php_json_sse2_compute_escape_intersection(_mm_setzero_si128(), input);
602
#endif
603
if (mask != 0) {
604
- if (max_shift < sizeof(__m128i)) {
+ if (UNEXPECTED(max_shift < sizeof(__m128i))) {
605
int shift = zend_ulong_ntz(mask); /* first offending character */
606
pos += MIN(max_shift, shift);
607
len -= MIN(max_shift, shift);
0 commit comments