mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
extend check for add_flag
This commit is contained in:
@@ -2156,7 +2156,7 @@ function ADD_FLAG(name, flags, target)
|
||||
match can be done. This will also
|
||||
help to normalize flags and to not
|
||||
to insert duplicates. */
|
||||
if (curr_flags.indexOf(" " + flags) >= 0) {
|
||||
if (curr_flags.indexOf(" " + flags) >= 0 || curr_flags.indexOf(flags + " ") >= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user