Home
last modified time | relevance | path

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

1234

/php-src/Zend/
H A Dzend_smart_str.h59 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
60 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
102 smart_str_trim_to_size_ex(dest, false); in smart_str_trim_to_size()
125 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex() local
126 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
131 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
132 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
181 smart_str_append_ex(dest, src, false); in smart_str_append()
185 smart_str_appendc_ex(dest, ch, false); in smart_str_appendc()
193 smart_str_free(dest); in smart_str_setl()
[all …]
H A Dzend_smart_string.h80 dest->len = smart_string_alloc(dest, 1, persistent); in smart_string_appendc_ex()
81 dest->c[dest->len - 1] = ch; in smart_string_appendc_ex()
85 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex()
86 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex()
87 dest->len = new_len; in smart_string_appendl_ex()
94 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_long_ex()
100 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_unsigned_ex()
103 static zend_always_inline void smart_string_setl(smart_string *dest, char *src, size_t len) { in smart_string_setl() argument
104 dest->len = len; in smart_string_setl()
105 dest->a = len + 1; in smart_string_setl()
[all …]
H A Dzend_frameless_function.h45 #define Z_FLF_PARAM_ZVAL(arg_num, dest) \ argument
46 dest = arg ## arg_num;
47 #define Z_FLF_PARAM_ARRAY(arg_num, dest) \ argument
48 …if (!zend_parse_arg_array(arg ## arg_num, &dest, /* null_check */ false, /* or_object */ false)) {…
52 #define Z_FLF_PARAM_ARRAY_OR_NULL(arg_num, dest) \ argument
53 if (!zend_parse_arg_array(arg ## arg_num, &dest, /* null_check */ true, /* or_object */ false)) { \
73 #define Z_FLF_PARAM_BOOL(arg_num, dest) \ argument
78 #define Z_FLF_PARAM_LONG(arg_num, dest) \ argument
83 #define Z_FLF_PARAM_LONG_OR_NULL(arg_num, is_null, dest) \ argument
88 #define Z_FLF_PARAM_STR(arg_num, dest, tmp) \ argument
[all …]
H A Dzend_API.h2195 *dest = 1; in zend_parse_arg_bool_ex()
2197 *dest = 0; in zend_parse_arg_bool_ex()
2200 *dest = 0; in zend_parse_arg_bool_ex()
2225 *dest = 0; in zend_parse_arg_long_ex()
2250 *dest = 0.0; in zend_parse_arg_double()
2260 *dest = arg; in zend_parse_arg_number()
2272 *dest = arg; in zend_parse_arg_number_or_str()
2322 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
2348 *dest = arg; in zend_parse_arg_iterable()
2364 *dest = arg; in zend_parse_arg_array()
[all …]
H A Dzend_smart_str.c130 zend_printf_to_smart_str(dest, format, arg); in smart_str_append_printf()
200 smart_str_appendl(dest, "NULL", sizeof("NULL")-1); in smart_str_append_scalar()
205 smart_str_appends(dest, Z_TYPE_P(value) == IS_TRUE ? "true" : "false"); in smart_str_append_scalar()
209 smart_str_append_double(dest, Z_DVAL_P(value), (int) EG(precision), true); in smart_str_append_scalar()
213 smart_str_append_long(dest, Z_LVAL_P(value)); in smart_str_append_scalar()
217 smart_str_appendc(dest, '\''); in smart_str_append_scalar()
218 smart_str_append_escaped_truncated(dest, Z_STR_P(value), truncate); in smart_str_append_scalar()
219 smart_str_appendc(dest, '\''); in smart_str_append_scalar()
229 smart_str_append_scalar(dest, value, truncate); in smart_str_append_zval()
231 smart_str_append(dest, Z_OBJCE_P(value)->name); in smart_str_append_zval()
[all …]
/php-src/ext/standard/
H A Duuencode.c69 zend_string *dest; in php_uuencode() local
124 dest = zend_string_truncate(dest, (char *) p - ZSTR_VAL(dest), 0); in php_uuencode()
125 return dest; in php_uuencode()
134 zend_string *dest; in php_uudecode() local
141 p = ZSTR_VAL(dest); in php_uudecode()
191 ZSTR_LEN(dest) = total_len; in php_uudecode()
192 ZSTR_VAL(dest)[ZSTR_LEN(dest)] = '\0'; in php_uudecode() local
194 return dest; in php_uudecode()
197 zend_string_efree(dest); in php_uudecode()
220 zend_string *dest; in PHP_FUNCTION() local
[all …]
/php-src/ext/standard/tests/file/
H A Dstream_copy_to_stream.phpt13 $dest = fopen($new_file, 'w');
16 var_dump(ftell($dest));
17 fclose($src); fclose($dest);
30 var_dump(ftell($dest));
31 fclose($src); fclose($dest);
47 var_dump(ftell($dest));
48 fclose($src); fclose($dest);
64 var_dump(ftell($dest));
81 var_dump(ftell($dest));
99 var_dump(ftell($dest));
[all …]
H A Dstream_copy_to_stream_interleaved.phpt12 $dest = fopen($new_file, 'w');
15 var_dump(fwrite($dest, "foo"));
16 var_dump(stream_copy_to_stream($src, $dest, 10));
18 var_dump(ftell($dest));
20 var_dump(fwrite($dest, "bar"));
21 var_dump(stream_copy_to_stream($src, $dest, 10));
23 var_dump(ftell($dest));
24 fclose($src); fclose($dest);
H A Dgh9779.phpt7 $dest = __DIR__.'/gh9779_dest.txt';
10 file_put_contents($dest, "foo");
12 $destHandle = fopen($dest, "a");
16 var_dump(file_get_contents($dest));
21 $dest = __DIR__.'/gh9779_dest.txt';
24 @unlink($dest);
H A Dcopy_variation8.phpt45 foreach($dests as $dest) {
48 var_dump( copy($symlink, $dest) );
49 var_dump( file_exists($dest) );
50 var_dump( is_link($dest) ); //expected: bool(false)
51 var_dump( is_file($dest) ); //expected: bool(true)
53 unlink("$dest");
55 var_dump( copy($hardlink, $dest) );
56 var_dump( file_exists($dest) );
57 var_dump( is_link($dest) ); //expected: bool(flase)
58 var_dump( is_file($dest) ); //expected: bool(true)
[all …]
H A Dbug38086.phpt13 $dest = fopen($new_file, 'w');
14 var_dump(stream_copy_to_stream($src, $dest));
15 fclose($src); fclose($dest);
27 $dest = fopen($new_file, 'w');
28 var_dump(stream_copy_to_stream($src, $dest, 10000));
29 fclose($src); fclose($dest);
H A Dcopy_variation12.phpt18 $dest = $file_path."/copy_copy_variation12";
20 var_dump( copy($src_dir, $dest) );
22 var_dump( file_exists($dest) );
25 var_dump( filesize($dest) );
/php-src/ext/gd/tests/
H A Dbug66005.phpt13 $dest = imagecreatetruecolor(150, 50);
14 $transparent = imagecolorallocatealpha($dest, 255, 255, 255, 127);
15 imagealphablending($dest, false);
16 imagefill($dest, 1, 1, $transparent);
17 imagesavealpha($dest, true);
28 imagecopy($dest, $png_palette, 0, 0, 0, 0, 50, 50);
29 imagecopy($dest, $png_24, 50, 0, 0, 0, 50, 50);
30 imagecopy($dest, $png_full, 100, 0, 0, 0, 50, 50);
33 test_image_equals_file(__DIR__ . '/bug66005.png', $dest);
H A Dbug24155.phpt13 $dest = dirname(realpath(__FILE__)) . '/bug24155.png';
14 @unlink($dest);
19 imagepng($im, $dest);
21 $im2 = imagecreatefrompng($dest);
28 @unlink($dest);
H A Dbug27582_1.phpt13 $dest = dirname(realpath(__FILE__)) . '/bug27582.png';
14 @unlink($dest);
21 imagepng($im, $dest);
23 $im2 = imagecreatefrompng($dest);
27 @unlink($dest);
H A Dbug36697-mb.phpt7 $dest = __DIR__ . "/36697私はガラスを食べられます.gif";
15 imagegif($im, $dest);
17 $im = imagecreatefromgif($dest);
21 @unlink($dest);
H A Dbug36697.phpt7 $dest = __DIR__ . "/36697.gif";
15 imagegif($im, $dest);
17 $im = imagecreatefromgif($dest);
21 @unlink($dest);
H A Dimagefilledpolygon_basic.phpt17 $dest = dirname(realpath(__FILE__)) . '/imagefilledpolygon.png';
41 imagepng($image, $dest);
44 $image_in = imagecreatefrompng($dest);
65 $dest = dirname(realpath(__FILE__)) . '/imagefilledpolygon.png';
66 @unlink($dest);
/php-src/ext/zip/tests/
H A Dbug40228.phpt7 $dest = __DIR__ . "/bug40228";
11 $zip->extractTo($dest);
12 if (is_dir($dest . '/test/empty')) {
14 rmdir($dest . '/test/empty');
15 rmdir($dest . '/test');
16 rmdir($dest);
H A Dbug40228-mb.phpt7 $dest = __DIR__ . "/bug40228-mb";
11 $zip->extractTo($dest);
12 if (is_dir($dest . '/test/empty')) {
14 rmdir($dest . '/test/empty');
15 rmdir($dest . '/test');
16 rmdir($dest);
/php-src/win32/build/
H A Dmkdist.php157 function copy_text_file($source, $dest) argument
161 $fp = fopen($dest, "w");
211 fclose($dest);
260 foreach ($text_files as $src => $dest) {
270 copy($src, $dist_dir . '/' . $dest);
346 $dest = "$dist_dir/$dll[0]"; variable
349 if (!file_exists("$dest") || !is_dir("$dest")) {
410 function copy_dir($source, $dest) argument
412 if (!is_dir($dest)) {
413 if (!mkdir($dest)) {
[all …]
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_string_utils.c70 unsigned char *dest = (unsigned char *)d; in PRIV()
72 if (dest > src) in PRIV()
74 dest += n; in PRIV()
76 for (i = 0; i < n; ++i) *(--dest) = *(--src); in PRIV()
77 return (void *)dest; in PRIV()
81 for (i = 0; i < n; ++i) *dest++ = *src++; in PRIV()
82 return (void *)(dest - n); in PRIV()
/php-src/ext/bcmath/libbcmath/src/
H A Dconvert.c24 char *bc_copy_and_toggle_bcd(char *restrict dest, const char *source, const char *source_end) in bc_copy_and_toggle_bcd() argument
34 _mm_storeu_si128((__m128i *) dest, bytes); in bc_copy_and_toggle_bcd()
37 dest += sizeof(__m128i); in bc_copy_and_toggle_bcd()
50 memcpy(dest, &bytes, sizeof(bytes)); in bc_copy_and_toggle_bcd()
53 dest += sizeof(size_t); in bc_copy_and_toggle_bcd()
57 *dest = *source ^ '0'; in bc_copy_and_toggle_bcd()
58 dest++; in bc_copy_and_toggle_bcd()
62 return dest; in bc_copy_and_toggle_bcd()
/php-src/ext/bz2/
H A Dbz2.c477 zend_string_efree(dest); in PHP_FUNCTION()
482 ZSTR_LEN(dest) = dest_len; in PHP_FUNCTION()
483 ZSTR_VAL(dest)[ZSTR_LEN(dest)] = '\0'; in PHP_FUNCTION() local
484 RETURN_NEW_STR(dest); in PHP_FUNCTION()
493 zend_string *dest; in PHP_FUNCTION() local
522 bzs.next_out = ZSTR_VAL(dest); in PHP_FUNCTION()
534 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION()
543 zend_string_efree(dest); in PHP_FUNCTION()
548 dest = zend_string_safe_realloc(dest, 1, (size_t)size, 1, 0); in PHP_FUNCTION()
551 RETVAL_STR(dest); in PHP_FUNCTION()
[all …]
/php-src/ext/gd/libgd/
H A Dgd_jpeg.c767 my_dest_ptr dest = (my_dest_ptr) cinfo->dest; in init_destination() local
772 dest->pub.next_output_byte = dest->buffer; in init_destination()
773 dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; in init_destination()
802 my_dest_ptr dest = (my_dest_ptr) cinfo->dest; in empty_output_buffer() local
804 if (gdPutBuf (dest->buffer, OUTPUT_BUF_SIZE, dest->outfile) != (size_t) OUTPUT_BUF_SIZE) { in empty_output_buffer()
808 dest->pub.next_output_byte = dest->buffer; in empty_output_buffer()
826 my_dest_ptr dest = (my_dest_ptr) cinfo->dest; in term_destination() local
830 if (datacount > 0 && ((size_t)gdPutBuf (dest->buffer, datacount, dest->outfile) != datacount)) { in term_destination()
844 my_dest_ptr dest; in jpeg_gdIOCtx_dest() local
856 dest = (my_dest_ptr) cinfo->dest; in jpeg_gdIOCtx_dest()
[all …]

Completed in 53 milliseconds

1234