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 1893668 commit 63bfd30Copy full SHA for 63bfd30
Zend/zend_execute.c
@@ -723,13 +723,14 @@ ZEND_API ZEND_COLD void zend_verify_arg_error(
723
724
static bool zend_verify_weak_scalar_type_hint(uint32_t type_mask, zval *arg)
725
{
726
+ zend_long lval;
727
+ double dval;
728
+
729
/* Type preference order: int -> float -> string -> bool */
730
if (type_mask & MAY_BE_LONG) {
731
/* For an int|float union type and string value,
732
* determine chosen type by is_numeric_string() semantics. */
733
if ((type_mask & MAY_BE_DOUBLE) && Z_TYPE_P(arg) == IS_STRING) {
- zend_long lval;
- double dval;
734
uint8_t type = is_numeric_str_function(Z_STR_P(arg), &lval, &dval);
735
if (type == IS_LONG) {
736
zend_string_release(Z_STR_P(arg));
0 commit comments