Skip to content

Promote some warnings in MBString Regex - #5341

Closed
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:mbstring-regex-warnings-to-error
Closed

Promote some warnings in MBString Regex#5341
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:mbstring-regex-warnings-to-error

Conversation

@Girgias

Copy link
Copy Markdown
Member

I'm clueless on some of them if they should be converted or not.

Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch from c9a14a3 to 2ad2671CompareApril 3, 2020 15:49
Comment threadext/mbstring/tests/bug72399.phpt Outdated
Comment on lines 15 to 24

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I really don't get why this throws, will need to investigate I suppose.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why shouldn't it throw?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I don't know was confused, probably because I suppose it should throw before? As in in mb_ereg_search_init() ?

@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch 2 times, most recently from 7903ef5 to 54b6ac2CompareApril 9, 2020 22:18
@Girgias
Girgias requested a review from nikicApril 9, 2020 22:21
@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch from 54b6ac2 to 8092994CompareApril 10, 2020 16:13
@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch from 8092994 to 2aa6653CompareApril 23, 2020 21:47
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
@nikic

nikic commented Aug 6, 2020

Copy link
Copy Markdown
Member

I think another PR also did something in this area, can you please rebase?

Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch from 5d36f8a to fcd52e5CompareSeptember 8, 2020 13:46
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/php_mbregex.c Outdated
Comment threadext/mbstring/tests/bug72399.phpt Outdated
Comment on lines 15 to 24

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why shouldn't it throw?

@Girgias
Girgiasforce-pushed the mbstring-regex-warnings-to-error branch from fcd52e5 to fdac9bdCompareSeptember 8, 2020 15:36
case 'e':
if (eval != NULL) *eval = 1;
break;
zend_value_error("Option \"e\" is not supported");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can remove this as a separate case (handle in default). Or alternatively, use a different error message like "no longer supported".

@Girgias
Girgias deleted the mbstring-regex-warnings-to-error branch September 9, 2020 12:57
Sign up for freeto 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.

4 participants

@Girgias@nikic@kocsismate@carusogabriel