Home
last modified time | relevance | path

Searched refs:pattern (Results 26 – 50 of 149) sorted by relevance

123456

/php-src/ext/standard/tests/file/
H A Dglob_variation-win32.phpt42 foreach($patterns as $pattern) {
45 var_dump( glob($pattern) ); // default arguments
46 var_dump( glob($pattern, GLOB_MARK) );
47 var_dump( glob($pattern, GLOB_NOSORT) );
48 var_dump( glob($pattern, GLOB_NOCHECK) );
49 var_dump( glob($pattern, GLOB_NOESCAPE) );
50 var_dump( glob($pattern, GLOB_ERR) );
57 echo "\n*** Testing glob() with pattern within braces ***\n";
73 foreach($patterns as $pattern) {
76 var_dump( glob($pattern, GLOB_ONLYDIR) );
[all …]
/php-src/ext/intl/msgformat/
H A Dmsgformat_arginfo.h6 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
11 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
20 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
30 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
35 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
H A Dmsgformat.c31 char* pattern; in msgfmt_ctor() local
43 &locale, &locale_len, &pattern, &pattern_len ) == FAILURE ) in msgfmt_ctor()
57 if(pattern && pattern_len) { in msgfmt_ctor()
58 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in msgfmt_ctor()
79 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); in msgfmt_ctor()
H A Dmsgformat_parse.c80 char *pattern = NULL; in PHP_FUNCTION() local
91 &slocale, &slocale_len, &pattern, &pattern_len, &source, &src_len ) == FAILURE ) in PHP_FUNCTION()
100 if(pattern && pattern_len) { in PHP_FUNCTION()
101 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION()
H A Dmsgformat_format.c77 char *pattern = NULL; in PHP_FUNCTION() local
87 &slocale, &slocale_len, &pattern, &pattern_len, &args ) == FAILURE ) in PHP_FUNCTION()
97 if(pattern && pattern_len) { in PHP_FUNCTION()
98 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION()
/php-src/ext/mbstring/
H A Dmbstring.stub.php203 function mb_ereg(string $pattern, string $string, &$matches = null): bool {} argument
206 function mb_eregi(string $pattern, string $string, &$matches = null): bool {} argument
209 function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = n… argument
212 function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = … argument
215 function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $opt… argument
221 function mb_split(string $pattern, string $string, int $limit = -1): array|false {} argument
223 function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {} argument
225 function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {} argument
231 function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {} argument
237 function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {} argument
[all …]
/php-src/sapi/fpm/tests/
H A Dstatus.inc55 * @param string $pattern
60 echo "ERROR: Expected body does not match pattern\n";
64 var_dump($pattern);
119 $pattern = '(' . $header;
130 $pattern .= sprintf($rowPattern, $name, $value);
133 $pattern = rtrim($pattern, $rowPattern[strlen($rowPattern) - 1]);
134 $pattern .= $footer . ')';
136 if (!preg_match($pattern, $body)) {
137 $this->matchError($body, $pattern);
271 if (!preg_match($pattern, $body)) {
[all …]
H A Dlogtool.inc57 private ?string $pattern;
235 $this->pattern = sprintf(
243 $this->pattern = null;
543 $pattern,
716 string $pattern,
739 return $this->logReader->printError('The search pattern found - PATTERN: ' . $pattern);
749 * @param string|null $pattern
758 ?string $pattern = null,
764 if ($pattern !== null) {
784 * @param string|null $pattern
[all …]
/php-src/ext/intl/tests/
H A Dmsgfmt_clone.phpt18 // Set a new pattern.
19 $pattern = "{0,number} trees hosting {1,number} monkeys";
20 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
H A Dmsgfmt_fail2.phpt131 Deprecated: MessageFormatter::__construct(): Passing null to parameter #2 ($pattern) of type string…
138 Deprecated: MessageFormatter::create(): Passing null to parameter #2 ($pattern) of type string is d…
143 Deprecated: msgfmt_create(): Passing null to parameter #2 ($pattern) of type string is deprecated i…
160 IntlException: pattern syntax error (parse error at offset 1, after "{", before or at "0,choice}"):…
161 'pattern syntax error (parse error at offset 1, after "{", before or at "0,choice}"): U_PATTERN_SYN…
162 'pattern syntax error (parse error at offset 1, after "{", before or at "0,choice}"): U_PATTERN_SYN…
163 'pattern syntax error (parse error at offset 1, after "{", before or at "0,choice}"): U_PATTERN_SYN…
170 IntlException: msgfmt_create: error converting pattern to UTF-16: U_INVALID_CHAR_FOUND in %s on lin…
171 'msgfmt_create: error converting pattern to UTF-16: U_INVALID_CHAR_FOUND'
172 'msgfmt_create: error converting pattern to UTF-16: U_INVALID_CHAR_FOUND'
[all …]
H A Dut_common.inc133 function ut_nfmt_create( $locale, $style, $pattern = null )
142 return numfmt_create( $locale, $style, $pattern );
181 function ut_nfmt_set_pattern( $fmt, $pattern )
183 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : numfmt_set_pattern( $fmt, $pattern );
303 function ut_msgfmt_create( $locale, $pattern)
305 …BALS['oo-mode'] ? MessageFormatter::create( $locale, $pattern ) : msgfmt_create( $locale, $pattern
317 …] ? MessageFormatter::formatMessage( $locale, $pattern, $args ) : msgfmt_format_message( $locale, …
323 function ut_msgfmt_set_pattern( $fmt, $pattern )
325 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : msgfmt_set_pattern( $fmt, $pattern );
376 function ut_datefmt_set_pattern( $fmt , $pattern )
[all …]
H A Dgh11658.phpt17 Warning: MessageFormatter::formatMessage(): pattern syntax error (parse error at offset 6, after "s…
20 Warning: msgfmt_format_message(): pattern syntax error (parse error at offset 6, after "some {", be…
H A Dbug62017.phpt2 Bug #62017: datefmt_create with incorrectly encoded timezone leaks pattern
23 Exception: IntlDateFormatter::__construct(): datefmt_create: error converting pattern to UTF-16 in …
/php-src/ext/intl/formatter/
H A Dformatter_main.c30 char* pattern = NULL; in numfmt_ctor() local
39 &locale, &locale_len, &style, &pattern, &pattern_len ) == FAILURE ) in numfmt_ctor()
58 if(pattern && pattern_len) { in numfmt_ctor()
59 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(n… in numfmt_ctor()
/php-src/ext/pcre/
H A Dphp_pcre_arginfo.h5 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
15 ZEND_ARG_TYPE_MASK(0, pattern, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
25 ZEND_ARG_TYPE_MASK(0, pattern, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
34 ZEND_ARG_TYPE_INFO(0, pattern, IS_ARRAY, 0)
42 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
54 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/php-src/ext/pcre/tests/
H A Dbug75457.phpt5 $pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
6 var_dump(preg_match($pattern, "hello"));
H A Dpreg_replace_callback_array_numeric_index_error.phpt2 preg_replace_callback_array() invalid pattern
11 Fatal error: Uncaught TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain…
H A Dbug40909.phpt6 $pattern =
12 if ($result =preg_match_all($pattern, $context, $match))
H A Dpreg_filter.phpt7 $pattern = array('/\d/', '/[a-z]/', '/[1a]/');
10 var_dump(preg_filter($pattern, $replace, $subject));
/php-src/sapi/cli/tests/
H A D006.phpt71 Parameter #0 [ <required> string $pattern ]
82 Parameter #0 [ <required> string $pattern ]
93 Parameter #0 [ <required> array|string $pattern ]
104 Parameter #0 [ <required> array|string $pattern ]
115 Parameter #0 [ <required> array|string $pattern ]
127 Parameter #0 [ <required> array $pattern ]
138 Parameter #0 [ <required> string $pattern ]
156 Parameter #0 [ <required> string $pattern ]
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_types.phpt14 …function test_type(&$db, $offset, $sql_type, $value, $ret_value = NULL, $pattern = NULL, $alternat…
46 if (!is_null($pattern)) {
47 if (!preg_match($pattern, $row['label'])) {
48 … printf("[%03d + 5] Value seems wrong, accepting pattern %s got %s, check manually\n",
49 $offset, $pattern, var_export($row['label'], true));
75 if (is_null($pattern) && ($row['label'] != $row_string['label'])) {
78 } else if (!is_null($pattern) && !preg_match($pattern, $row_string['label'])) {
79 …GY = %s, NATIVE = %s, pattern '%s'\n", $sql_type, var_export($row_string['label'], true), var_expo…
/php-src/ext/date/tests/
H A Dbug-gh11600.phpt10 $pattern = $formatter->getPattern();
16 var_dump($pattern, $timeString, $timestamp);
/php-src/main/streams/
H A Dglob_wrapper.c42 char *pattern; member
71 if (pglob && pglob->pattern) { in _php_glob_stream_get_pattern()
75 return pglob->pattern; in _php_glob_stream_get_pattern()
177 if (pglob->pattern) { in php_glob_stream_close()
178 efree(pglob->pattern); in php_glob_stream_close()
266 pglob->pattern = estrndup(pos, pglob->pattern_len); in php_glob_stream_opener()
/php-src/ext/standard/
H A Ddir.c339 char *pattern = NULL; in PHP_FUNCTION() local
349 Z_PARAM_PATH(pattern, pattern_len) in PHP_FUNCTION()
365 if (!IS_ABSOLUTE_PATH(pattern, pattern_len)) { in PHP_FUNCTION()
371 if (IS_SLASH(*pattern)) { in PHP_FUNCTION()
377 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
378 pattern = work_pattern; in PHP_FUNCTION()
385 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
/php-src/ext/opcache/tests/
H A Dbug78189.phpt18 $pattern = $tmpdir . '/*/*/' . str_replace(':', '', __DIR__) . '/bug78189.php.bin';
19 $filenames = glob($pattern);

Completed in 32 milliseconds

123456