File manager - Edit - /opt/alt/tests/alt-php84-pecl-http_4.2.6-4.el8/tests/messagebody006.phpt
Back
--TEST-- message body etag --SKIPIF-- <?php include "skipif.inc"; ?> --INI-- http.etag.mode = crc32b --FILE-- <?php echo "Test\n"; $file = new http\Message\Body(fopen(__FILE__, "r")); $temp = new http\Message\Body; $s = stat(__FILE__); var_dump( sprintf( "%lx-%lx-%lx", $s["ino"],$s["mtime"],$s["size"] ) === $file->etag() ); var_dump($temp->etag()); ?> DONE --EXPECT-- Test bool(true) string(8) "00000000" DONE
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings