Skip to content

Commit 794814c

Browse files
committed
Keywords: add pcntl_* prefix to function detection
1 parent a48224d commit 794814c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KeywordEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class KeywordEnhancer {
1313
'/\b(?<![`\\\\])[A-Z][A-Z\\\\a-z]+::[a-z][A-Za-z_\d]+\b(?![`\/(])/', // Class::constants
1414
'/\b(?<!`-)[a-z]+_[a-z]+(?:_[a-z_]+)?\(\)(?![`\/])/', // Functions with underscores and ()
1515
'/\b(?<![`>])[a-z_][a-z][a-z\d_]+\(\)(?![`.>\/-])/', // Functions with underscores and ()
16-
'/\b(?<!`)(?:ldap|ftp|array|mb|stream|open|hash|xml|proc)_[a-z_]+\d?\b(?![`\/])/', // Functions with underscores and no ()
16+
'/\b(?<!`)(?:ldap|ftp|array|mb|stream|open|hash|xml|proc|pcntl)_[a-z_]+\d?\b(?![`\/])/', // Functions with underscores and no ()
1717
'/\b(?<!`)(xleak|xfail|skipif)\b(?![`\/])/i', // xleak
1818
'/(?<![`>()-])--[a-z][a-z-]+(?![`])/i', // --flags, --flags-and-more
1919
'/(?<![`>()-])\bext\/[a-z_\d\/-]+\.phpt\b(?![`])/i', // ext/test/test/test.phpt

0 commit comments

Comments
 (0)