Skip to content

add new PHP 7.4 functions#181

Merged
nicolas-grekas merged 1 commit intosymfony:masterfrom
IonBazan:php7.4
Aug 6, 2019
Merged

add new PHP 7.4 functions#181
nicolas-grekas merged 1 commit intosymfony:masterfrom
IonBazan:php7.4

Conversation

@IonBazan
Copy link
Copy Markdown
Contributor

@IonBazan IonBazan commented Jul 22, 2019

This PR adds new PHP 7.4 functions:

Closes #179 and replaces #178

@IonBazan IonBazan changed the title add new PHP 7.4 functions [WIP] add new PHP 7.4 functions Jul 22, 2019
@IonBazan IonBazan force-pushed the php7.4 branch 2 times, most recently from 95d7473 to 02a54ab Compare July 22, 2019 09:48
Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/Php74.php Outdated
@IonBazan IonBazan changed the title [WIP] add new PHP 7.4 functions add new PHP 7.4 functions Jul 22, 2019
Copy link
Copy Markdown
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

thanks :)

Comment thread .travis.yml Outdated
Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/composer.json Outdated
@nicolas-grekas
Copy link
Copy Markdown
Member

Oh, please list the polyfill in the root composer.json and README files too!

Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/Php74.php Outdated
Comment thread src/Php74/composer.json
Copy link
Copy Markdown
Contributor

@BackEndTea BackEndTea left a comment

Choose a reason for hiding this comment

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

Looks like this covers the polyfill almost perfectly.

It is probably nicer to add a README.md for this polyfill itself as well, in line with the other polyfills.

Comment thread tests/Php74/Php74Test.php Outdated
Comment thread tests/Php74/Php74Test.php Outdated
Comment thread tests/Php74/Php74Test.php Outdated
Comment thread src/Php74/Php74.php
@IonBazan IonBazan force-pushed the php7.4 branch 2 times, most recently from 909d223 to e039fce Compare July 23, 2019 02:04
Comment thread src/Php74/README.md
@IonBazan
Copy link
Copy Markdown
Contributor Author

@stof @nicolas-grekas @BackEndTea PTAL

Copy link
Copy Markdown
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

almost good to me thanks

Comment thread README.md Outdated
Comment thread src/Mbstring/Mbstring.php Outdated
Comment thread src/Php74/composer.json Outdated
@IonBazan IonBazan force-pushed the php7.4 branch 2 times, most recently from aac8ed5 to cac69ec Compare July 24, 2019 15:29
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @IonBazan.

@nicolas-grekas nicolas-grekas merged commit 141689e into symfony:master Aug 6, 2019
nicolas-grekas added a commit that referenced this pull request Aug 6, 2019
This PR was squashed before being merged into the 1.11-dev branch (closes #181).

Discussion
----------

add new PHP 7.4 functions

This PR adds new PHP 7.4 functions:
- [x] `get_mangled_object_vars` (php/php-src@eecd896)
- [x] `mb_str_split` (https://wiki.php.net/rfc/mb_str_split)
- [x] `password_algos` (https://wiki.php.net/rfc/password_registry)

Closes #179 and replaces #178

Commits
-------

141689e add new PHP 7.4 functions
@IonBazan IonBazan deleted the php7.4 branch August 6, 2019 08:16
@kamil-tekiela
Copy link
Copy Markdown
Contributor

FYI there has been multiple workarounds suggested on SO for mb_str_split() function already. Maybe you could optimise the case when the split length is 1?

https://stackoverflow.com/a/41664898/1839439
https://stackoverflow.com/a/42122239/1839439
https://stackoverflow.com/a/55783469/1839439

@nicolas-grekas
Copy link
Copy Markdown
Member

@kamil-tekiela feel free to submit a PR!

@kamil-tekiela
Copy link
Copy Markdown
Contributor

Done #199

This is my first PR, so I am not sure I followed the process correctly or if my PR is useful at all. I appreciate feedback.

Comment thread src/Php74/Php74.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PHP 7.4] Add get_mangled_object_vars()

6 participants