Home
last modified time | relevance | path

Searched refs:pattern (Results 101 – 125 of 149) sorted by relevance

123456

/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_bit.phpt17 function test_type(&$db, $offset, $sql_type, $value, $ret_value = NULL, $pattern = NULL) {
/php-src/sapi/fpm/tests/
H A Dtester.inc470 if ($pattern !== null && preg_match($pattern, $message)) {
579 * @param string $pattern Search pattern to find.
584 public function runTill(string $pattern)
1712 * Expect log pattern in logs.
1714 * @param string $pattern Log pattern
1722 string $pattern,
1728 $pattern,
1737 * Expect no such log pattern in logs.
1739 * @param string $pattern Log pattern
1747 string $pattern,
[all …]
/php-src/ext/intl/tests/
H A Dgh8115.phpt39 Caught (8192): MessageFormatter::__construct(): Passing null to parameter #2 ($pattern) of type str…
/php-src/ext/mbstring/tests/
H A Dmb_ereg_variation5.phpt12 * Test mb_ereg with anchors (start and end of string) in $pattern
H A Dmb_ereg_variation7.phpt2 Test mb_ereg() function : usage variations - different regex features in $pattern
H A Dmb_ereg_variation6.phpt12 * Test how mb_ereg() matches special characters for $pattern
/php-src/ext/gd/tests/
H A Dbug24594.phpt14 /* create the dots pattern */
/php-src/ext/zip/
H A Dphp_zip.c641 if (!IS_ABSOLUTE_PATH(pattern, pattern_len)) { in php_zip_glob()
647 if (IS_SLASH(*pattern)) { in php_zip_glob()
653 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in php_zip_glob()
654 pattern = work_pattern; in php_zip_glob()
659 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
1735 zend_string *pattern; local
1740 &pattern, &glob_flags, &options) == FAILURE) {
1745 &pattern, &path, &path_len, &options) == FAILURE) {
1750 if (ZSTR_LEN(pattern) == 0) {
1759 found = php_zip_glob(ZSTR_VAL(pattern), ZSTR_LEN(pattern), glob_flags, return_value);
[all …]
H A Dphp_zip.stub.php673 public function addGlob(string $pattern, int $flags = 0, array $options = []): array|false {}
676 …public function addPattern(string $pattern, string $path = ".", array $options = []): array|false …
/php-src/ext/fileinfo/
H A Dlibmagic.patch518 + zend_string *pattern;
525 + zend_string_release(pattern);
529 + zend_string_release(pattern);
2076 + zend_string *pattern;
2086 + zend_string_release(pattern);
2090 + zend_string_release(pattern);
2887 + pattern_lower = zend_str_tolower_dup(nv[i].pattern, strlen(nv[i].pattern));
3070 + zend_string *pattern;
3272 + zend_string *pattern;
3323 + zend_string_release(pattern);
[all …]
/php-src/ext/intl/
H A Dphp_intl_arginfo.h285 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
320 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
373 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
437 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
571 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
581 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
592 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
598 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/php-src/ext/phar/
H A Dphar_object.stub.php90 public function buildFromDirectory(string $directory, string $pattern = ""): array {} argument
276 public function buildFromDirectory(string $directory, string $pattern = ""): array {} argument
/php-src/ext/fileinfo/libmagic/
H A Dsoftmagic.c494 zend_string *pattern; in check_fmt() local
499 pattern = ZSTR_INIT_LITERAL("~%[-0-9\\.]*s~", 0); in check_fmt()
500 if ((pce = pcre_get_compiled_regex_cache_ex(pattern, 0)) == NULL) { in check_fmt()
510 zend_string_release_ex(pattern, 0); in check_fmt()
2275 zend_string *pattern; in magiccheck() local
2285 pattern = convert_libmagic_pattern((char *)m->value.s, m->vallen, options); in magiccheck()
2288 if ((pce = pcre_get_compiled_regex_cache(pattern)) == NULL) { in magiccheck()
2289 zend_string_release(pattern); in magiccheck()
2310 zend_string_release(pattern); in magiccheck()
2337 zend_string_release(pattern); in magiccheck()
[all …]
H A Dapprentice.c2811 zend_string *pattern; in getvalue() local
2815 pattern = convert_libmagic_pattern(m->value.s, strlen(m->value.s), options); in getvalue()
2817 if ((pce = pcre_get_compiled_regex_cache(pattern)) == NULL) { in getvalue()
2818 zend_string_release(pattern); in getvalue()
2821 zend_string_release(pattern); in getvalue()
/php-src/ext/mbstring/
H A Dphp_mbregex.c455 static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, size_t patlen, OnigOptionTy… in php_mbregex_compile_pattern() argument
463 if (!php_mb_check_encoding(pattern, patlen, php_mb_regex_get_mbctype_encoding())) { in php_mbregex_compile_pattern()
469 rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen); in php_mbregex_compile_pattern()
471 …if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, … in php_mbregex_compile_pattern()
480 zend_hash_str_update_ptr(&MBREX(ht_rc), (char *)pattern, patlen, retval); in php_mbregex_compile_pattern()
/php-src/ext/soap/
H A Dphp_sdl.h146 sdlRestrictionCharPtr pattern; member
/php-src/ext/pcre/
H A Dphp_pcre.c603 char *pattern; in pcre_get_compiled_regex_cache_ex() local
707 pattern = estrndup(p, pattern_len); in pcre_get_compiled_regex_cache_ex()
755 efree(pattern); in pcre_get_compiled_regex_cache_ex()
772 efree(pattern); in pcre_get_compiled_regex_cache_ex()
786 re = pcre2_compile((PCRE2_SPTR)pattern, pattern_len, coptions, &errnumber, &erroffset, cctx); in pcre_get_compiled_regex_cache_ex()
795 efree(pattern); in pcre_get_compiled_regex_cache_ex()
821 efree(pattern); in pcre_get_compiled_regex_cache_ex()
2439 HashTable *pattern, *subject_ht; in PHP_FUNCTION() local
2448 Z_PARAM_ARRAY_HT(pattern) in PHP_FUNCTION()
2466 ZEND_HASH_FOREACH_STR_KEY_VAL(pattern, str_idx_regex, replace) { in PHP_FUNCTION()
/php-src/ext/pcre/pcre2lib/sljit/
H A DsljitNativeS390X.c466 #define SLJIT_S390X_RR(name, pattern) \ argument
499 #define SLJIT_S390X_RRE(name, pattern) \ argument
502 return (pattern) | R4A(dst) | R0A(src); \
624 #define SLJIT_S390X_RXA(name, pattern) \ argument
656 #define SLJIT_S390X_RXYA(name, pattern, cond) \ argument
705 #define SLJIT_S390X_RSYA(name, pattern, cond) \ argument
728 #define SLJIT_S390X_RIEF(name, pattern) \ argument
763 #define SLJIT_S390X_RRFC(name, pattern) \ argument
771 return (pattern) | m3 | R4A(dst) | R0A(src); \
781 #define SLJIT_S390X_RIEG(name, pattern) \ argument
[all …]
/php-src/ext/spl/
H A Dspl_directory.stub.php216 …public function __construct(string $pattern, int $flags = FilesystemIterator::KEY_AS_PATHNAME | Fi… argument
/php-src/ext/spl/tests/
H A Dbug55701.phpt7 // Some methods of GlobIterator do not throw a RuntimeException when the glob pattern doesn't match…
8 // Most methods of GlobIterator throw a RuntimeException when the glob pattern doesn't match any fi…
H A Dclass_implements_variation1.phpt98 // loop through each element of the array for pattern
H A Dclass_uses_variation1.phpt98 // loop through each element of the array for pattern
/php-src/ext/intl/formatter/
H A Dformatter_arginfo.h7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
66 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/php-src/sapi/fpm/
H A Dphp-fpm.conf.in138 ; files from a glob(3) pattern. This directive can be used everywhere in the
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_compile.c10124 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
10185 if (pattern == NULL) in pcre2_compile()
10187 if (patlen == 0) pattern = (PCRE2_SPTR)""; else in pcre2_compile()
10224 patlen = PRIV(strlen)(pattern); in pcre2_compile()
10249 cb.end_pattern = pattern + patlen; in pcre2_compile()
10267 cb.start_pattern = pattern; in pcre2_compile()
10303 ptr = pattern; in pcre2_compile()
10405 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
10957 if (zero_terminated) VALGRIND_MAKE_MEM_DEFINED(pattern + patlen, CU2BYTES(1)); in pcre2_compile()
10974 ptr = pattern + cb.erroroffset; in pcre2_compile()
[all …]

Completed in 150 milliseconds

123456