◐ Shell
reader mode source ↗
Skip to content

Implement the negative_array_index RFC#3772

Closed
pmmaga wants to merge 1 commit into
php:masterfrom
pmmaga:negative-next-index-8
Closed

Implement the negative_array_index RFC#3772
pmmaga wants to merge 1 commit into
php:masterfrom
pmmaga:negative-next-index-8

Conversation

@pmmaga

@pmmaga pmmaga commented Jan 29, 2019

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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

pmmaga commented Feb 4, 2019

Copy link
Copy Markdown
Contributor Author

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

@KalleZ

KalleZ commented Feb 4, 2019

Copy link
Copy Markdown
Member

@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

nikic commented Feb 5, 2019

Copy link
Copy Markdown
Member

@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

nikic commented Feb 7, 2019

Copy link
Copy Markdown
Member

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

@dstogov

dstogov commented Feb 7, 2019

Copy link
Copy Markdown
Member

looks fine for me too.

@pmmaga

pmmaga commented Feb 8, 2019

Copy link
Copy Markdown
Contributor Author

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