Home
last modified time | relevance | path

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

12345678910

/PHP-5.5/ext/standard/tests/array/
H A Darray_merge_recursive_variation8.phpt2 Test array_merge_recursive() function : usage variations - binary safe checking
11 * Testing the functionality of array_merge_recursive() by passing an array having binary values.
14 echo "*** Testing array_merge_recursive() : array with binary data for \$arr1 argument ***\n";
16 // array with binary values
20 $arr2 = array(b"str1" => b"binary", b"hello" => "binary", b"str2" => b"binary");
31 *** Testing array_merge_recursive() : array with binary data for $arr1 argument ***
54 string(6) "binary"
63 string(6) "binary"
70 string(6) "binary"
H A Darray_intersect_variation10.phpt2 Test array_intersect() function : usage variations - binary safe checking
12 * binary values for $arr1 and $arr2 argument.
15 echo "*** Testing array_intersect() : binary safe checking ***\n";
17 // array with binary values
22 // array with binary value for $arr1 argument
25 // array with binary value for $arr2 argument
28 // array with binary value for both $arr1 and $arr2 argument
34 *** Testing array_intersect() : binary safe checking ***
H A Darray_combine_variation6.phpt2 Test array_combine() function : usage variations - binary safe checking
13 * binary values for $keys and $values argument.
16 echo "*** Testing array_combine() : binary safe checking ***\n";
18 // array with binary values
22 // array with binary value for $keys and $values argument
25 // array with binary value for $values argument
28 // array with binary value for $keys argument
34 *** Testing array_combine() : binary safe checking ***
H A Darray_intersect_assoc_variation10.phpt2 Test array_intersect_assoc() function : usage variations - binary safe checking
13 * binary values for $arr1 and $arr2 argument.
16 echo "*** Testing array_intersect_assoc() : binary safe checking ***\n";
18 // array with binary values
23 // array with binary value for $arr1 argument
26 // array with binary value for $arr2 argument
29 // array with binary value for both $arr1 and $arr2 argument
35 *** Testing array_intersect_assoc() : binary safe checking ***
H A Darray_pad_variation4.phpt2 Test array_pad() function : usage variations - binary safe checking
11 * Passing binary values to $pad_value argument and testing whether
16 echo "*** Testing array_pad() : Passing binary values to \$pad_value argument ***\n";
23 $binary = b"hello";
25 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size'
26 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size'
31 *** Testing array_pad() : Passing binary values to $pad_value argument ***
H A Darray_map_variation9.phpt2 Test array_map() function : usage variations - binary safe checking
11 * Test array_map() by passing array having binary values for $arr1 argument
14 echo "*** Testing array_map() : array with binary data for 'arr1' argument ***\n";
25 // array with binary data
28 echo "-- checking binary safe array with one parameter callback function --\n";
31 echo "-- checking binary safe array with two parameter callback function --\n";
37 *** Testing array_map() : array with binary data for 'arr1' argument ***
38 -- checking binary safe array with one parameter callback function --
49 -- checking binary safe array with two parameter callback function --
H A Darray_unique_variation7.phpt2 Test array_unique() function : usage variations - binary safe checking
11 * Testing the functionality of array_unique() by passing an array having binary values.
14 echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
16 // array with binary values
24 *** Testing array_unique() : array with binary data for $input argument ***
H A Darray_diff_variation3.phpt80 "binary" => array(
81 // binary data
82 b"binary",
83 (binary)"binary"),
174 string(6) "binary"
176 string(6) "binary"
H A Darray_diff_assoc_variation3.phpt83 // binary data
85 'binary' => array(
86 b"binary",
87 (binary)"binary"),
183 string(6) "binary"
185 string(6) "binary"
H A Darray_diff_assoc_variation4.phpt75 // binary data
77 'binary' => array(
78 b"binary1" => 'binary 1',
79 (binary)"binary2" => 'binary 2'),
161 string(8) "binary 1"
163 string(8) "binary 2"
/PHP-5.5/ext/spl/tests/
H A Drecursive_tree_iterator_005.phpt2 SPL: RecursiveTreeIterator and binary vs unicode (PHP 6.0+)
10 (binary) "binary",
14 (binary) "binary" => array(
45 string(10) "| |-binary"
64 string(8) "\-binary"
81 string(6) "binary"
82 string(10) "| |-binary"
89 string(8) "\-binary"
/PHP-5.5/ext/standard/tests/strings/
H A Dbug40915.phpt2 Bug #40915 (addcslashes unexpected behavior with binary input)
6 $str = (binary)"a\000z";
9 var_dump(addcslashes($str, (binary)""));
10 var_dump(addcslashes($str, (binary)"\000z"));
11 var_dump(addcslashes( $str, (binary)"z"));
H A Dconvert_cyr_string.phpt12 var_dump(convert_cyr_string((binary)"[[[[[[", "q", "m"));
13 var_dump(convert_cyr_string((binary)"[[[[[[", "k", "w"));
14 var_dump(convert_cyr_string((binary)"[[[[[[", "m", "a"));
15 var_dump(convert_cyr_string((binary)"[[[[[[", "d", "i"));
16 var_dump(convert_cyr_string((binary)"[[[[[[", "w", "k"));
17 var_dump(convert_cyr_string((binary)"[[[[[[", "i", "q"));
18 var_dump(convert_cyr_string((binary)"", "d", "i"));
H A Dstrncasecmp_variation7.phpt2 Test strncasecmp() function : usage variations - binary safe
10 /* Test strncasecmp() function with null terminated strings and binary values passed to 'str1' & 's…
12 echo "*** Test strncasecmp() function: with null terminated strings and binary inputs ***\n";
14 /* A binary function should not expect a null terminated string, and it should treat input as a raw…
24 *** Test strncasecmp() function: with null terminated strings and binary inputs ***
H A Djoin_variation6.phpt2 Test join() function : usage variations - binary safe
12 * check the working of join() when given binary input given
15 echo "*** Testing join() : usage variationsi - binary safe ***\n";
29 *** Testing join() : usage variationsi - binary safe ***
H A Dstrrchr_variation12.phpt2 Test strrchr() function : usage variations - binary safe
10 /* Test strrchr() function: with binary values & null terminated strings passed to 'str1' & 'str2' …
12 echo "*** Test strrchr() function: binary safe ***\n";
32 *** Test strrchr() function: binary safe ***
H A Dstrrpos_variation12.phpt2 Test strrpos() function : usage variations - checking binary safe with 'haystack' argument
11 * in order to check the binary safe
14 echo "*** Test strrpos() function: binary safe ***\n";
32 *** Test strrpos() function: binary safe ***
H A Dstr_getcsv_001.phpt21 var_dump(str_getcsv((binary)'1foo1 1bar111', (binary)' ', (binary)'1 ', (binary) '\ '));
H A Dfprintf_variation_003_64bit.phpt21 /* binary type variations */
22 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
37 *** Testing fprintf() with binary ***
/PHP-5.5/ext/standard/tests/file/
H A Dpopen_pclose_basic-win32.phpt48 fwrite($file_handle, (binary)$str);
49 …fwrite($file_handle, (binary)(binary)(binary)(binary)(binary)(binary)(binary)(binary)(binary)$newl…
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dphar_test.inc7 $manifest = (binary)'';
39 if (empty($crc32))$crc32= crc32((binary)$cont);
43 $manifest .= pack('V', strlen($name)) . (binary)$name;
44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
55 …ir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', strlen($pmeta)) . (bi…
56 $file = (binary)$file;
61 $file .= (binary)$cont;
/PHP-5.5/ext/phar/tests/files/
H A Dphar_test.inc7 $manifest = (binary)'';
39 if (empty($crc32))$crc32= crc32((binary)$cont);
43 $manifest .= pack('V', strlen($name)) . (binary)$name;
44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
55 …ir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', strlen($pmeta)) . (bi…
56 $file = (binary)$file;
61 $file .= (binary)$cont;
/PHP-5.5/ext/standard/
H A Dcrypt_blowfish.c667 } binary; in BF_crypt() member
698 BF_swap(data.binary.salt, 4); in BF_crypt()
707 L ^= data.binary.salt[i & 2]; in BF_crypt()
708 R ^= data.binary.salt[(i & 2) + 1]; in BF_crypt()
745 tmp1 = data.binary.salt[0]; in BF_crypt()
746 tmp2 = data.binary.salt[1]; in BF_crypt()
747 tmp3 = data.binary.salt[2]; in BF_crypt()
748 tmp4 = data.binary.salt[3]; in BF_crypt()
769 data.binary.output[i] = L; in BF_crypt()
770 data.binary.output[i + 1] = R; in BF_crypt()
[all …]
/PHP-5.5/ext/oci8/tests/
H A Doci_execute_segfault.phpt25 var_dump($blob->save("some binary data"));
29 var_dump($blob->save("some more binary data"));
49 string(16) "some binary data"
50 string(21) "some more binary data"
/PHP-5.5/ext/phar/tests/
H A D009.phpt12 $file .= (binary) pack(b'VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . (binary) str_repeat((binary

Completed in 85 milliseconds

12345678910