Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/medad.corals.io/vendor/google/crc32/ext/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/medad.corals.io/vendor/google/crc32/ext/tests/004_error.phpt
--TEST--
crc32c() errors test
--SKIPIF--
<?php
if (!extension_loaded('crc32c')) {
    echo 'skip';
}
?>
--FILE--
<?php

// The only valid 2nd argument is null
var_dump(crc32c('ABCDEFG', null));

var_dump(crc32c('ABCDEFG', ''));
var_dump(crc32c('ABCDEFG', 0));
var_dump(crc32c('ABCDEFG', 0x12345678));
var_dump(crc32c('ABCDEFG', '12345678'));

// TODO test no argument, or non-string argument.

?>
--EXPECTF--
string(4) ",wVe"

Warning: crc32c(): Supplied crc must be a 4 byte string in %s on line %d
bool(false)

Warning: crc32c(): Supplied crc must be a 4 byte string in %s on line %d
bool(false)

Warning: crc32c(): Supplied crc must be a 4 byte string in %s on line %d
bool(false)

Warning: crc32c(): Supplied crc must be a 4 byte string in %s on line %d
bool(false)

Spamworldpro Mini