Skip to content

Commit 48f0296

Browse files
committed
adapt code to handle php 8.4 too (based on @JoshuaBehrens & @rbro work)
cf 2025daf Signed-off-by: Romain Gautier <[email protected]>
1 parent 5234490 commit 48f0296

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v8js_object_export.cc

+4
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,11 @@ v8::Local<v8::Value> v8js_named_property_callback(v8::Isolate *isolate, v8::Loca
675675
ce = scope = object->ce;
676676

677677
/* First, check the (case-insensitive) method table */
678+
#if PHP_VERSION_ID < 80400
678679
php_strtolower(lower, name_len);
680+
#else
681+
zend_str_tolower(lower, name_len);
682+
#endif
679683
method_name = zend_string_init(lower, name_len, 0);
680684

681685
// toString() -> __tostring()

0 commit comments

Comments
 (0)