aliyun / tea-php

Client of Tea for PHP
https://packagist.org/packages/alibabacloud/tea
Other
6 stars 5 forks source link

fix the error of `Maximum function nesting level` #33

Closed AxiosLeo closed 4 years ago

AxiosLeo commented 4 years ago

The Maximum function nesting level of '100' reached, aborting! error occurs when the user keeps requesting the API server repeatedly.

Because there are multiple layers of nesting in Middleware::mapResponse that shouldn't be there, as the number of requests increases, the number of layers of nesting increases as well, eventually causing the program to throw an exception.