Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Nov 27, 2023

This should fix the test failure introduced in: 126a255

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

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

Wow, it looks like this error message change was committed to JIT by mistake as it doesn't respect the original VM error message. I don't think these kind of changes should go into stable releases.

I would suggest reverting this JIT change in PHP-8.2 and PHP-8.3 and commit the new message into master only.

It would be also great to add a test case.

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

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

I was wrong, that error message was introduced a long time ago and we just didn't have test that showed the inconsistency.

Approved!

@dstogov dstogov merged commit e94ab04 into php:PHP-8.2 Nov 27, 2023
dstogov added a commit that referenced this pull request Nov 27, 2023
* PHP-8.2:
  Align error messages between normal VM and JIT for RW when using object as array (#12799)
dstogov added a commit that referenced this pull request Nov 27, 2023
* PHP-8.3:
  Align error messages between normal VM and JIT for RW when using object as array (#12799)
@Girgias Girgias deleted the 82-jit-standard-vm-rw-op-different branch November 28, 2023 10:34
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.

2 participants