/PHP-7.4/ext/phar/ |
H A D | phar.c | 1106 PHAR_GET_32(buffer, entry.crc32); in phar_parse_pharfile() 2344 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… in phar_postprocess_file() argument 2385 memcpy(&(local.crc32), &(desc.crc32), 12); in phar_postprocess_file() 2388 memcpy(&(local.crc32), &desc, 12); in phar_postprocess_file() 2392 …->filename_len != PHAR_ZIP_16(local.filename_len) || entry->crc32 != PHAR_ZIP_32(local.crc32) || e… in phar_postprocess_file() 2418 if (~crc == crc32) { in phar_postprocess_file() 2776 entry->crc32 = ~newcrc32; in phar_flush() 2976 phar_set_32(entry_buffer+12, entry->crc32); in phar_flush()
|
H A D | phar_object.c | 4622 RETURN_LONG(entry_obj->entry->crc32); in PHP_METHOD()
|
H A D | zip.c | 63 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()
|
H A D | util.c | 728 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 D | tar.c | 795 entry->crc32 = phar_tar_checksum((char *)&header, sizeof(header)); in phar_tar_writeheaders_int() 797 if (FAILURE == phar_tar_octal(header.checksum, entry->crc32, sizeof(header.checksum)-1)) { in phar_tar_writeheaders_int()
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | tester.inc | 1024 hash('crc32', dirname($address)).'-'.
|
/PHP-7.4/ext/zlib/ |
H A D | php_zlib.def | 54 crc32
|
/PHP-7.4/ext/standard/ |
H A D | config.w32 | 27 crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
|
H A D | config.m4 | 485 PHP_NEW_EXTENSION(standard, array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
|
H A D | basic_functions.c | 2756 PHP_NAMED_FE(crc32,php_if_crc32, arginfo_crc32)
|
/PHP-7.4/ |
H A D | UPGRADING | 293 . Added "crc32c" hash using Castagnoli's polynomial. This crc32 variant is
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | crc32_variation3.phpt | 2 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 D | crc32.phpt | 2 crc32() function 7 printf("%u\n", crc32($i));
|
H A D | crc32_basic.phpt | 2 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 D | crc32_variation4.phpt | 2 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 ***
|
H A D | crc32_variation2.phpt | 2 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 ***
|
/PHP-7.4/ext/phar/tests/ |
H A D | phar_createdefaultstub.phpt | 301 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 D | phar_setdefaultstub.phpt | 321 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/hash/tests/ |
H A D | hash_algos.phpt | 81 string(5) "crc32"
|
H A D | hash_file_basic1.phpt | 34 echo "crc32: " . hash_file('crc32', $file) . "\n"; 63 crc32: 61664d33
|
H A D | hash_hkdf_error.phpt | 27 var_dump(hash_hkdf('crc32', $ikm)); 67 Warning: hash_hkdf(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
|
H A D | hash_hmac_error.phpt | 28 var_dump(hash_hmac('crc32', $data, $key)); 58 Warning: hash_hmac(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
|
H A D | hash_hmac_file_error.phpt | 19 var_dump(hash_hmac_file('crc32')); 20 var_dump(hash_hmac_file('crc32', $file)); 24 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg); 30 hash_hmac_file('crc32', $file, $key, TRUE); 61 Warning: hash_hmac_file(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
|
H A D | hash_init_error.phpt | 14 var_dump(hash_init('crc32', HASH_HMAC)); 32 Warning: hash_init(): HMAC requested with a non-cryptographic hashing algorithm: crc32 in %s on lin…
|
H A D | hash_pbkdf2_error.phpt | 28 var_dump(hash_pbkdf2('crc32', $password, $salt, 1)); 68 Warning: hash_pbkdf2(): Non-cryptographic hashing algorithm: crc32 in %s on line %d
|