diff --git a/v8js_object_export.cc b/v8js_object_export.cc index 2792058c..e6ab9fc6 100644 --- a/v8js_object_export.cc +++ b/v8js_object_export.cc @@ -675,7 +675,11 @@ v8::Local v8js_named_property_callback(v8::Isolate *isolate, v8::Loca ce = scope = object->ce; /* First, check the (case-insensitive) method table */ +#if PHP_VERSION_ID < 80400 php_strtolower(lower, name_len); +#else + zend_str_tolower(lower, name_len); +#endif method_name = zend_string_init(lower, name_len, 0); // toString() -> __tostring()