0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-18 15:01:54 +00:00

Fix wrong php to lower method

Fixes #540
Relates https://github.com/Imagick/imagick/pull/690/
This commit is contained in:
Joshua Behrens 2024-10-24 22:42:49 +02:00
parent 2010c22a49
commit 2025daf049
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -675,7 +675,7 @@ v8::Local<v8::Value> v8js_named_property_callback(v8::Isolate *isolate, v8::Loca
ce = scope = object->ce;
/* First, check the (case-insensitive) method table */
php_strtolower(lower, name_len);
zend_str_tolower(lower, name_len);
method_name = zend_string_init(lower, name_len, 0);
// toString() -> __tostring()