Skip to content

Implement the negative_array_index RFC #3772

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

Closed
wants to merge 1 commit into from

Conversation

pmmaga
Copy link
Contributor

@pmmaga pmmaga commented Jan 29, 2019

@nikic nikic added this to the PHP 8.0 milestone Jan 29, 2019
@nikic nikic removed the PHP 8 label Jan 29, 2019
@pmmaga pmmaga force-pushed the negative-next-index-8 branch from e2c2f6a to 142a0e3 Compare January 30, 2019 18:06
@carusogabriel
Copy link
Contributor

Now that I noticed that we don't have the milestone option at https://qa.php.net/pulls/#repo=php-src 😕

@pmmaga pmmaga force-pushed the negative-next-index-8 branch from 1987fca to 92f3541 Compare February 4, 2019 17:22
@pmmaga
Copy link
Contributor Author

pmmaga commented Feb 4, 2019

Not sure if we'll be using milestones for other cases as well. If yes, we will probably need that.

@KalleZ
Copy link
Member

KalleZ commented Feb 4, 2019

@carusogabriel We don't really use Github fully so things like Milestones are not a thing here. I believe we did tag PRs for versions at one point, but I could be wrong

@nikic
Copy link
Member

nikic commented Feb 5, 2019

@carusogabriel I've added you to the GH org. Generally, it's best not to manage labels via the QA interface, as the generated notifications are annoying to everyone else.

@pmmaga pmmaga force-pushed the negative-next-index-8 branch from 92f3541 to 9eee682 Compare February 6, 2019 17:40
@pmmaga pmmaga force-pushed the negative-next-index-8 branch from 9eee682 to 319fddf Compare February 6, 2019 17:46
@nikic
Copy link
Member

nikic commented Feb 7, 2019

This looks fine to me. @dstogov Anything to add?

@dstogov
Copy link
Member

dstogov commented Feb 7, 2019

looks fine for me too.

@pmmaga
Copy link
Contributor Author

pmmaga commented Feb 8, 2019

Merged as 6732028

@pmmaga pmmaga closed this Feb 8, 2019
Totktonada pushed a commit to mikhainin/tarantool-php that referenced this pull request Apr 11, 2022
The `nNextFreeElement` field is initialized with `ZEND_LONG_MIN` instead
of zero since PHP 8.0. Adjust our `php_mp_is_hash()` check accordingly.
See [1] and [2] for details.

NB: PHP 8.1 introduces `zend_array_is_list()`, which may be used here.
See [3] and [4] for details.

[1]: https://wiki.php.net/rfc/negative_array_index
[2]: php/php-src#3772
[3]: https://wiki.php.net/rfc/is_list
[4]: php/php-src#6070

Since I don't observe any other problems on PHP 8.1, closing the
relevant issue.

Fixes tarantool#171
Totktonada pushed a commit to tarantool/tarantool-php that referenced this pull request Apr 11, 2022
The `nNextFreeElement` field is initialized with `ZEND_LONG_MIN` instead
of zero since PHP 8.0. Adjust our `php_mp_is_hash()` check accordingly.
See [1] and [2] for details.

NB: PHP 8.1 introduces `zend_array_is_list()`, which may be used here.
See [3] and [4] for details.

[1]: https://wiki.php.net/rfc/negative_array_index
[2]: php/php-src#3772
[3]: https://wiki.php.net/rfc/is_list
[4]: php/php-src#6070

Since I don't observe any other problems on PHP 8.1, closing the
relevant issue.

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

Successfully merging this pull request may close these issues.

6 participants