Home
last modified time | relevance | path

Searched refs:crc32 (Results 26 – 44 of 44) sorted by path

12

/PHP-7.4/ext/phar/tests/files/
H A Dnophar.phar265 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
H A Dopenssl.phar265 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
H A Dphar_test.inc13 $crc32= NULL;
24 foreach(array('comp','crc32','clen','ulen','time','flags','perm','meta','cont') as $what)
37 if (empty($crc32))$crc32= crc32((binary)$cont);
42 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
/PHP-7.4/ext/phar/tests/
H A Dphar_createdefaultstub.phpt301 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
595 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
897 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
H A Dphar_setdefaultstub.phpt321 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
616 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
911 if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) {
/PHP-7.4/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc92 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
99 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
106 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
110 case 'crc32' :
113 pack("VVVvv", $crc32 + 1, $complength, $uncomplength, strlen($filename), 0x00) .
120 pack("VVVvv", $crc32, $complength + 1, $uncomplength, strlen($filename), 0x00) .
141 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 1) .
148 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
155 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
191 case 'crc32' :
[all …]
/PHP-7.4/ext/phar/
H A Dutil.c728 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
746 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
793 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0)) { in phar_open_entry_fp()
812 entry->crc32 = 0; in phar_create_writeable_entry()
845 entry->crc32 = 0; in phar_create_writeable_entry()
H A Dzip.c63 read = php_stream_read(fp, (char *) &(h.unix3.crc32), sizeof(h.unix3) - sizeof(h.header)); in phar_zip_process_extra()
387 entry.crc32 = PHAR_GET_32(zipentry.crc32); in phar_parse_zipfile()
590 …ry.filename_len != PHAR_GET_16(local.filename_len) || entry.crc32 != PHAR_GET_32(local.crc32) || e… in phar_parse_zipfile()
863 PHAR_SET_32(perms.crc32, ~crc); in phar_zip_changed_apply_int()
928 entry->crc32 = ~newcrc32; in phar_zip_changed_apply_int()
1000 PHAR_SET_32(central.crc32, entry->crc32); in phar_zip_changed_apply_int()
1001 PHAR_SET_32(local.crc32, entry->crc32); in phar_zip_changed_apply_int()
/PHP-7.4/ext/standard/
H A Dbasic_functions.c2756 PHP_NAMED_FE(crc32,php_if_crc32, arginfo_crc32)
H A Dconfig.m4485 PHP_NEW_EXTENSION(standard, array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
H A Dconfig.w3227 crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
/PHP-7.4/ext/standard/tests/strings/
H A Dbug36306.phpt2 Bug #36306 (crc32() 64bit)
6 /* as an example how to write crc32 tests
8 display crc32 like a signed integer.
12 echo dechex(crc32("platform independent")) . "\n";
H A Dcrc32.phpt2 crc32() function
7 printf("%u\n", crc32($i));
H A Dcrc32_basic.phpt2 Test crc32() function : basic functionality
5 /* Prototype : string crc32(string $str)
6 * Description: Calculate the crc32 polynomial of a string
7 * Source code: ext/standard/crc32.c
12 * Testing crc32() : basic functionality
15 echo "*** Testing crc32() : basic functionality ***\n";
21 // Calling crc32() with all possible arguments
24 var_dump( is_int(crc32($str)) );
27 printf("%u\n", crc32($str) );
32 *** Testing crc32() : basic functionality ***
H A Dcrc32_variation2.phpt2 Test crc32() function : usage variations - single quoted strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different strings in single quotes passed to the function
20 echo "*** Testing crc32() : with different strings in single quotes ***\n";
69 var_dump( crc32($str) );
76 *** Testing crc32() : with different strings in single quotes ***
H A Dcrc32_variation3.phpt2 Test crc32() function : usage variations - double quoted strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different strings in double quotes passed to the function
20 echo "*** Testing crc32() : with different strings in double quotes ***\n";
71 var_dump( crc32($str) );
78 *** Testing crc32() : with different strings in double quotes ***
H A Dcrc32_variation4.phpt2 Test crc32() function : usage variations - heredoc strings
10 /* Prototype : string crc32(string $str)
11 * Description: Calculate the crc32 polynomial of a string
12 * Source code: ext/standard/crc32.c
17 * Testing crc32() : with different heredoc strings passed to the str argument
20 echo "*** Testing crc32() : with different heredoc strings ***\n";
85 var_dump( crc32($str) );
92 *** Testing crc32() : with different heredoc strings ***
/PHP-7.4/ext/zlib/
H A Dphp_zlib.def54 crc32
/PHP-7.4/sapi/fpm/tests/
H A Dtester.inc1024 hash('crc32', dirname($address)).'-'.

Completed in 95 milliseconds

12