cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
472 stars 91 forks source link

getErrors falls in infinite recursion #16

Closed sprymiker closed 5 years ago

sprymiker commented 5 years ago

What: Bug Severity: 1

How to reproduce: Use the scheme with cyclic references

The result: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in .../vendor/cebe/php-openapi/src/SpecBaseObject.php on line 161

cebe commented 5 years ago

Hi, thanks for the report. Could you please provide an example spec that produces the error?

cebe commented 5 years ago

@sprymiker do you have any feedback about this issue?

cebe commented 5 years ago

unable to reproduce.