From 7c1e8219619d2cb714faefe696c2bfc0b6695e5d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 1 Mar 2022 11:18:16 +0100 Subject: [PATCH] fix bad method call --- ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.30.2