Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow detection not working for property chains #17623

Closed
iluuu1994 opened this issue Jan 29, 2025 · 0 comments
Closed

Stack overflow detection not working for property chains #17623

iluuu1994 opened this issue Jan 29, 2025 · 0 comments

Comments

@iluuu1994
Copy link
Member

Description

Originally reported by @abdullahasif88.

$test
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
    ->p->p->p->p->p->p->p->p->p->p
;

Resulted in this output:

Segfault

But I expected this output instead:

Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try splitting expression

PHP Version

8.3+

Operating System

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants