/PHP-5.6/ext/standard/tests/strings/ |
H A D | crc32_error.phpt | 2 Test crc32() function : error conditions 11 /* Prototype : string crc32(string $str) 12 * Description: Calculate the crc32 polynomial of a string 13 * Source code: ext/standard/crc32.c 18 * Testing crc32() : error conditions 21 echo "*** Testing crc32() : error conditions ***\n"; 24 echo "\n-- Testing crc32() function with Zero arguments --\n"; 25 var_dump( crc32() ); 31 var_dump( crc32($str, $extra_arg) ); 36 *** Testing crc32() : error conditions *** [all …]
|
H A D | crc32_basic.phpt | 2 Test crc32() function : basic functionality 11 /* Prototype : string crc32(string $str) 12 * Description: Calculate the crc32 polynomial of a string 13 * Source code: ext/standard/crc32.c 18 * Testing crc32() : basic functionality 21 echo "*** Testing crc32() : basic functionality ***\n"; 27 // Calling crc32() with all possible arguments 30 var_dump( is_int(crc32($str)) ); 33 printf("%u\n", crc32($str) ); 38 *** Testing crc32() : basic functionality ***
|
H A D | crc32_variation1.phpt | 2 Test crc32() function : usage variations - unexpected values 11 /* Prototype : string crc32(string $str) 12 * Description: Calculate the crc32 polynomial of a string 13 * Source code: ext/standard/crc32.c 18 * Testing crc32() : with unexpected values for str argument 21 echo "*** Testing crc32() : with unexpected values for str argument ***\n"; 92 var_dump( crc32($value) ); 102 *** Testing crc32() : with unexpected values for str argument *** 137 Warning: crc32() expects parameter 1 to be string, array given in %s on line %d 142 Warning: crc32() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | bug36306.phpt | 2 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 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 ***
|
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));
|
/PHP-5.6/ext/hash/tests/ |
H A D | crc32.phpt | 7 echo hash('crc32', ''), "\n"; 8 echo hash('crc32', 'a'), "\n"; 9 echo hash('crc32', 'abc'), "\n"; 10 echo hash('crc32', 'message digest'), "\n"; 11 echo hash('crc32', 'abcdefghijklmnopqrstuvwxyz'), "\n"; 12 echo hash('crc32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n"; 13 echo hash('crc32', '1234567890123456789012345678901234567890123456789012345678901234567890123456789…
|
H A D | hash_hmac_file_error.phpt | 21 var_dump(hash_hmac_file('crc32')); 22 var_dump(hash_hmac_file('crc32', $file)); 26 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg); 32 hash_hmac_file('crc32', $file.chr(0).$file, $key, TRUE);
|
H A D | hash_pbkdf2_error.phpt | 20 var_dump(@hash_pbkdf2('crc32')); 22 var_dump(@hash_pbkdf2('crc32', $password)); 24 var_dump(@hash_pbkdf2('crc32', $password, $salt)); 28 var_dump(@hash_pbkdf2('crc32', $password, $salt, 10, 10, true, 'extra arg'));
|
H A D | hash_hmac_error.phpt | 19 var_dump(hash_hmac('crc32')); 20 var_dump(hash_hmac('crc32', $data)); 24 var_dump(hash_hmac('crc32', $data, $key, TRUE, $extra_arg));
|
H A D | hash_file_basic1.phpt | 36 echo "crc32: " . hash_file('crc32', $file) . "\n"; 65 crc32: 61664d33
|
H A D | hash_hmac_basic.phpt | 20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n"; 46 crc32: 96859101
|
H A D | hash_hmac_file_basic.phpt | 40 echo "crc32: " . hash_hmac_file('crc32', $file, $key) . "\n"; 74 crc32: f2a60b9c
|
/PHP-5.6/ext/phar/ |
H A D | pharzip.h | 29 char crc32[4]; /* crc-32 4 bytes */ member 41 char crc32[4]; /* crc-32 4 bytes */ member 48 char crc32[4]; /* crc-32 4 bytes */ member 143 char crc32[4]; /* CRC Long CRC-32 of the remaining data */ member 159 char crc32[4]; /* crc-32 4 bytes */ member
|
/PHP-5.6/ext/phar/tests/zip/files/ |
H A D | corrupt_zipmaker.php.inc | 93 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) . 100 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) . 107 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) . 111 case 'crc32' : 114 pack("VVVvv", $crc32 + 1, $complength, $uncomplength, strlen($filename), 0x00) . 121 pack("VVVvv", $crc32, $complength + 1, $uncomplength, strlen($filename), 0x00) . 142 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 1) . 149 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) . 156 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) . 192 case 'crc32' : [all …]
|
/PHP-5.6/ext/phar/tests/ |
H A D | 014.phpt | 12 // wrong crc32 15 $files['a'] = array('cont'=>'a', 'crc32'=>crc32(b'aX')); 23 …/a): failed to open stream: phar error: internal corruption of phar "%s" (crc32 mismatch on file "…
|
/PHP-5.6/ext/phar/tests/cache_list/files/ |
H A D | phar_test.inc | 15 $crc32= NULL; 26 foreach(array('comp','crc32','clen','ulen','time','flags','perm','meta','cont') as $what) 39 if (empty($crc32))$crc32= crc32((binary)$cont); 44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
|
/PHP-5.6/ext/phar/tests/files/ |
H A D | phar_test.inc | 15 $crc32= NULL; 26 foreach(array('comp','crc32','clen','ulen','time','flags','perm','meta','cont') as $what) 39 if (empty($crc32))$crc32= crc32((binary)$cont); 44 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_filerange_crc.c | 51 *crcp = crc32(0L, Z_NULL, 0); in _zip_filerange_crc() 65 *crcp = crc32(*crcp, buf, (uInt)n); in _zip_filerange_crc()
|
H A D | zip_source_crc.c | 92 ctx->crc = (zip_uint32_t)crc32(0, NULL, 0); in crc_read() 128 …ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data, (uInt)n); /* TODO: check for overflo… in crc_read()
|
H A D | zip_string.c | 48 crc = (zip_uint32_t)crc32(0L, Z_NULL, 0); in _zip_string_crc32() 51 crc = (zip_uint32_t)crc32(crc, s->raw, s->length); in _zip_string_crc32()
|
H A D | zip_source_pkware.c | 124 ctx->key[0] = (zip_uint32_t)crc32(ctx->key[0] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt() 127 ctx->key[2] = (zip_uint32_t)crc32(ctx->key[2] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt()
|
/PHP-5.6/ext/zlib/ |
H A D | php_zlib.def | 51 crc32
|