From: Michael Wallner Date: Tue, 1 Mar 2022 10:18:16 +0000 (+0100) Subject: fix bad method call X-Git-Tag: v0.2.0~22 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7c1e8219619d2cb714faefe696c2bfc0b6695e5d;p=awesomized%2Fext-ion fix bad method call --- diff --git a/ion.c b/ion.c index aefdeeb..b357995 100644 --- a/ion.c +++ b/ion.c @@ -1743,7 +1743,7 @@ static ZEND_FUNCTION(ion_unserialize) php_ion_unserializer *ser = zo_ser ? &php_ion_obj(unserializer_php, zo_ser)->unserializer : NULL; php_ion_unserialize(ser, data, return_value); } else { - zend_call_method_with_1_params(zo_ser, NULL, NULL, "__invoke", return_value, data); + zend_call_method_with_1_params(zo_ser, NULL, NULL, "unserialize", return_value, data); } }