Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #20146 [Validator] Prevent infinite loop in PropertyMetadata (wes…
…leylancel) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #20146). Discussion ---------- [Validator] Prevent infinite loop in PropertyMetadata | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets |n/a | License | MIT | Doc PR | n/a This commit fixes a possible infinite loop in PropertyMetadata when the PropertyMetadata class was constructed with an existing property of class and later used (after being serialized and cached) on that same class while that property no longer existing. `get_parent_class` will return false when there is no parent class and `property_existing` will then keeping return false causing the `while` loop to be infinite. Commits ------- c1ae7b6 Prevent infinite loop in PropertyMetadata
- Loading branch information