1--TEST--
2Test crc32() function : basic functionality
3--FILE--
4<?php
5/*
6 * Testing crc32() : basic functionality
7*/
8
9echo "*** Testing crc32() : basic functionality ***\n";
10
11
12// Initialise all required variables
13$str = 'string_val1234';
14
15// Calling crc32() with all possible arguments
16
17// checking for the return type of the function
18var_dump( is_int(crc32($str)) );
19
20// Printing the returned value from the function
21printf("%u\n", crc32($str) );
22
23echo "Done";
24?>
25--EXPECT--
26*** Testing crc32() : basic functionality ***
27bool(true)
28256895812
29Done
30