1--TEST--
2Test crc32() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : string crc32(string $str)
6 * Description: Calculate the crc32 polynomial of a string
7 * Source code: ext/standard/crc32.c
8 * Alias to functions: none
9*/
10
11/*
12 * Testing crc32() : basic functionality
13*/
14
15echo "*** Testing crc32() : basic functionality ***\n";
16
17
18// Initialise all required variables
19$str = 'string_val1234';
20
21// Calling crc32() with all possible arguments
22
23// checking for the return type of the function
24var_dump( is_int(crc32($str)) );
25
26// Printing the returned value from the function
27printf("%u\n", crc32($str) );
28
29echo "Done";
30?>
31--EXPECT--
32*** Testing crc32() : basic functionality ***
33bool(true)
34256895812
35Done
36