Home
last modified time | relevance | path

Searched refs:pad (Results 1 – 25 of 25) sorted by relevance

/php-src/ext/simplexml/tests/
H A D026.phpt13 function traverse_xml($xml, $pad = '')
16 echo "$pad<$name";
24 traverse_xml($node, $pad.' ');
26 echo $pad."</$name>\n";
H A D028.phpt11 function traverse_xml($xml, $pad = '')
14 echo "$pad<$name";
22 traverse_xml($node, $pad.' ');
24 echo $pad."</$name>\n";
H A D018.phpt30 function traverse_xml($pad,$xml) {
32 echo $pad."<$name";
37 traverse_xml($pad." ",$node);
38 echo $pad."</$name>\n";
H A D027.phpt11 function traverse_xml($xml, $pad = '')
14 echo "$pad<$name";
22 traverse_xml($node, $pad.' ');
24 echo $pad."</$name>\n";
/php-src/ext/opcache/tests/jit/
H A Dbug80839.phpt14 function test($str, $pad) {
15 $x = $str . str_repeat($pad, 15); // $x now contains "yyyyyyyyyyyyyyy"
/php-src/Zend/
H A Dmicro_bench.php262 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
264 echo $name.$pad.$num."\n";
267 echo $name.$pad.$num." ".$num2."\n";
276 $pad = str_repeat("-", 24);
277 echo $pad."\n";
279 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
280 echo "Total".$pad.$num."\n";
H A Dbench.php367 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
369 echo $name.$pad.$num."\n";
377 $pad = str_repeat("-", 24);
378 echo $pad."\n";
380 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
381 echo "Total".$pad.$num."\n";
/php-src/ext/mbstring/tests/
H A Dmb_str_pad.phpt43 echo "--- Edge cases pad length ---\n";
49 echo "--- No pad string ---\n";
102 --- Edge cases pad length ---
107 --- No pad string ---
H A Dmb_detect_encoding.phpt334 'Čím výše vystoupíš, tím hlouběji padáš.',
/php-src/ext/gd/tests/
H A Dbug66590_1.phpt2 Bug #66590 (imagewebp() doesn't pad to even length) - segfault
H A Dbug66590.phpt2 Bug #66590 (imagewebp() doesn't pad to even length)
/php-src/ext/standard/tests/url/
H A Dbug55273.phpt2 Bug #55273 (base64_decode() with strict rejects whitespace after pad)
H A Dbug47174.phpt2 Bug #47174 (base64_decode() interprets pad char in mid string as terminator)
/php-src/ext/standard/tests/strings/
H A Dstr_pad.phpt19 echo "\n#### variations with input string and pad-length ####\n";
52 echo "\n#### variation with pad string ####\n";
90 #### variations with input string and pad-length ####
272 #### variation with pad string ####
H A Dunpack_offset.phpt5 $data = "pad" . pack("ll", 0x01020304, 0x05060708);
/php-src/ext/standard/
H A Dcrypt_sha256.c212 size_t pad; in sha256_finish_ctx() local
221 pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes; in sha256_finish_ctx()
222 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha256_finish_ctx()
225 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
226 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
230 sha256_process_block(ctx->buffer, bytes + pad + 8, ctx); in sha256_finish_ctx()
H A Dcrypt_sha512.c243 size_t pad; in sha512_finish_ctx() local
252 pad = bytes >= 112 ? 128 + 112 - (size_t)bytes : 112 - (size_t)bytes; in sha512_finish_ctx()
253 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
256 *(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP(ctx->total[0] << 3); in sha512_finish_ctx()
257 *(uint64_t *) &ctx->buffer[bytes + pad] = SWAP((ctx->total[1] << 3) | in sha512_finish_ctx()
261 sha512_process_block(ctx->buffer, (size_t)(bytes + pad + 16), ctx); in sha512_finish_ctx()
H A Dpack.c950 char pad = '\0'; in PHP_FUNCTION() local
963 if (input[inputpos + s] == pad) in PHP_FUNCTION()
/php-src/main/
H A Dfastcgi.c988 int pad = ((len + 7) & ~7) - len; in fcgi_make_header() local
992 hdr->paddingLength = (unsigned char)pad; in fcgi_make_header()
998 if (pad) { in fcgi_make_header()
999 memset(((unsigned char*)hdr) + sizeof(fcgi_header) + len, 0, pad); in fcgi_make_header()
1001 return pad; in fcgi_make_header()
1609 int pad; local
1626 pad = (((len - pos) + 7) & ~7) - (len - pos);
1627 rest = pad ? 8 - pad : 0;
1639 if (pad) {
H A Dsnprintf.c62 static char * __cvt(double value, int ndigit, int *decpt, bool *sign, int fmode, int pad) /* {{{ */ in __cvt() argument
96 if (pad && fmode) { in __cvt()
109 if (pad) { in __cvt()
/php-src/ext/mbstring/
H A Dmbstring.c5781 zend_string *input, *encoding_str = NULL, *pad = ZSTR_CHAR(' '); in PHP_FUNCTION() local
5789 Z_PARAM_STR(pad) in PHP_FUNCTION()
5807 if (ZSTR_LEN(pad) == 0) { in PHP_FUNCTION()
5817 size_t pad_length = mb_get_strlen(pad, encoding); in PHP_FUNCTION()
5844 …ECTED(full_left_pad_copies > SIZE_MAX / ZSTR_LEN(pad) || full_right_pad_copies > SIZE_MAX / ZSTR_L… in PHP_FUNCTION()
5849 size_t full_left_pad_bytes = full_left_pad_copies * ZSTR_LEN(pad); in PHP_FUNCTION()
5850 size_t full_right_pad_bytes = full_right_pad_copies * ZSTR_LEN(pad); in PHP_FUNCTION()
5874 for (size_t i = 0; i < full_left_pad_copies; i++, buffer += ZSTR_LEN(pad)) { in PHP_FUNCTION()
5875 memcpy(buffer, ZSTR_VAL(pad), ZSTR_LEN(pad)); in PHP_FUNCTION()
5885 for (size_t i = 0; i < full_right_pad_copies; i++, buffer += ZSTR_LEN(pad)) { in PHP_FUNCTION()
[all …]
/php-src/win32/build/
H A Dconfutils.js443 pad = " ";
445 pad += " ";
447 STDOUT.WriteLine(" " + arg.arg + pad + word_wrap_and_indent(max_width + 5, arg.helptext));
/php-src/ext/pgsql/
H A Dpgsql.c5504 … *pg_link, smart_str *querystr, HashTable *ht, int where_cond, const char *pad, int pad_len, zend_… in build_assignment_string() argument
5556 smart_str_appendl(querystr, pad, pad_len); in build_assignment_string()
/php-src/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます19762 #>>>>>40 ubelong x \b, pad %u
37641 # pad[354] should be 354 null bytes.
40456 # file size, not including pad characters at EOF
H A Dmagic19762 #>>>>>40 ubelong x \b, pad %u
37641 # pad[354] should be 354 null bytes.
40456 # file size, not including pad characters at EOF

Completed in 290 milliseconds