Skip to content

ext/standard/pack: minor refactoring #18822

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 5 commits into from
Jun 12, 2025

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jun 10, 2025

No description provided.

@@ -380,10 +360,10 @@ PHP_FUNCTION(pack)

/* Calculate output length and upper bound while processing*/
for (i = 0; i < formatcount; i++) {
int code = (int) formatcodes[i];
char code = formatcodes[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

contains leading spaces while the rest of the file uses tab

@@ -463,10 +443,10 @@ PHP_FUNCTION(pack)

/* Do actual packing */
for (i = 0; i < formatcount; i++) {
int code = (int) formatcodes[i];
char code = formatcodes[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

contains leading spaces while the rest of the file uses tab

@Girgias Girgias marked this pull request as ready for review June 10, 2025 14:14
@Girgias Girgias requested a review from bukka as a code owner June 10, 2025 14:14
@Girgias Girgias requested a review from nielsdos June 10, 2025 14:14
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Ok besides nits from Markus

@Girgias Girgias merged commit def3a95 into php:master Jun 12, 2025
1 check passed
@Girgias Girgias deleted the unpack-minor-refactoring branch June 12, 2025 09:47
@Girgias
Copy link
Member Author

Girgias commented Jun 12, 2025

Ok besides nits from Markus

The nits were address in 95e77b9 :)

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