fix bad method call
[awesomized/ext-ion] / ion.c
diff --git a/ion.c b/ion.c
index aefdeebf8cf7c472761e031074294aebad387e71..b357995a86f6aa604098b15653d48d098dcc393f 100644 (file)
--- 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);
        }
 }