File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -451,14 +451,14 @@ ZEND_FRAMELESS_FUNCTION(clamp, 3)
451
451
}
452
452
453
453
if (zend_compare (zmax , zvalue ) == -1 ) {
454
- RETURN_COPY_VALUE (zmax );
454
+ RETURN_COPY (zmax );
455
455
}
456
456
457
457
if (zend_compare (zvalue , zmin ) == -1 ) {
458
- RETURN_COPY_VALUE (zmin );
458
+ RETURN_COPY (zmin );
459
459
}
460
460
461
- RETURN_COPY_VALUE (zvalue );
461
+ RETURN_COPY (zvalue );
462
462
}
463
463
/* }}} */
464
464
Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ float(2.5)
49
49
float(2.5)
50
50
float(1.3)
51
51
float(3.141592653589793)
52
- double (NAN)
52
+ float (NAN)
53
53
string(1) "c"
54
54
string(1) "d"
55
55
2025-08-15
56
56
2025-08-20
57
57
2025-08-15
58
58
2025-08-20
59
- Argument #2 ($min) cannot be NAN
60
- Argument #3 ($max) cannot be NAN
61
- Argument #2 ($min) must be smaller than or equal to argument #3 ($max)
59
+ clamp(): Argument #2 ($min) cannot be NAN
60
+ clamp(): Argument #3 ($max) cannot be NAN
61
+ clamp(): Argument #2 ($min) must be smaller than or equal to argument #3 ($max)
You can’t perform that action at this time.
0 commit comments