Skip to content

Allow CTE on more CTE safe functions #10771

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 33 commits into from
Closed

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Mar 4, 2023

No description provided.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

Actually “Request changes” to make the concerns more visible to other reviewers: #10771 (comment)

This reverts commit 069fa1a.
This was accidentally added in phpGH-7780, but since it takes a callable
argument, this flag is useless on this function.

Closes phpGH-10859.
@mvorisek mvorisek requested a review from kocsismate as a code owner April 24, 2023 22:01
@mvorisek mvorisek requested a review from bukka as a code owner May 11, 2023 21:35
@nielsdos
Copy link
Member

Okay I went through the whole list in detail now. Two functions need to be removed:

  • str_getcsv needs to be removed because it uses isspace.
  • str_word_count because of the comment here:

    php-src/ext/standard/string.c

    Lines 5571 to 5573 in e0af7c3

    For the purpose of this function, 'word' is defined as a locale dependent
    string containing alphabetic characters, which also may contain, but not start
    with "'" and "-" characters.

I also see you added an XFAIL in one of the tests, I think it's better to not XFAIL the test. Instead, just disable opcache on that test. That way, we can still catch bugs.

Other than the remarks above I think this PR looks good (but someone else should double check).

@nielsdos
Copy link
Member

There are test failures because you forgot the PHP tags in the SKIPIF section.

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.

I think this looks good now. I'll wait a few days to see if more feedback comes in, but if not I'll do do the merge.
As a side note, I think that the better solution for the observers is to simply disable SCCP optimisation for those tests and revert the changes done to them, but I will do that during the merge.

@iluuu1994
Copy link
Member

As a side note, I think that the better solution for the observers is to simply disable SCCP optimisation for those tests and revert the changes done to them, but I will do that during the merge.

I agree.

nielsdos pushed a commit that referenced this pull request May 16, 2023
@nielsdos
Copy link
Member

Merged manually, thanks.

@nielsdos nielsdos closed this May 16, 2023
@mvorisek mvorisek deleted the more_cte branch May 16, 2023 20:31
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.

None yet

8 participants