Commit cbd71cb84d5 for php.net
commit cbd71cb84d566de796450226f74d07d2a61788b9
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Tue Apr 7 08:31:06 2026 -0700
ext/standard: "double" is not deprecated for `settype()` (#20694)
Remove incorrect inline comment that using "double" as the type is deprecated;
this comment was added in 929ae94c64c71fcbed8e4cecdb6d09398d61e079 when support
for "float" was included, but the use of "double" was never actually
deprecated.
[skip ci]
diff --git a/ext/standard/type.c b/ext/standard/type.c
index a228e899046..e23e4620da2 100644
--- a/ext/standard/type.c
+++ b/ext/standard/type.c
@@ -105,7 +105,7 @@ PHP_FUNCTION(settype)
convert_to_long(ptr);
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_FLOAT))) {
convert_to_double(ptr);
- } else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_DOUBLE))) { /* deprecated */
+ } else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_DOUBLE))) {
convert_to_double(ptr);
} else if (zend_string_equals_ci(type, ZSTR_KNOWN(ZEND_STR_STRING))) {
convert_to_string(ptr);