Skip to content

Fix throw in IS_IDENTICAL in JIT #15103

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

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

iluuu1994
Copy link
Member

We need to persist opline in case zend_is_identical() throws.

For context: https://github.com/php/php-src/actions/runs/10086589614/job/27889461092

We need to persist opline in case zend_is_identical() throws.
case ZEND_IS_NOT_IDENTICAL:
case ZEND_CASE_STRICT:
/* Array to array comparison may lead to recursion. */
return (t1 & t2) & MAY_BE_ARRAY_OF_ARRAY;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should also add MAY_BE_ARRAY_OF_OBJECT to supprt indirectly recursive structures.

Copy link
Member Author

@iluuu1994 iluuu1994 Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dstogov With ===, objects are compared by-reference (or object identity), so I believe they are not of concern here.

@staabm
Copy link
Contributor

staabm commented Jul 25, 2024

For context: php/php-src/actions/runs/10086589614/job/27889461092

fyi, these github action urls to logfiles will be pruned after a few months. in case there is something important for this PR to know from this github action log, you should put it into the PR description

@iluuu1994 iluuu1994 merged commit a0a8624 into php:master Jul 25, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants