projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
fix leaks / invalid frees
[m6w6/ext-http]
/
tests
/
messagebody006.phpt
1
--TEST--
2
message body etag
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--INI--
8
http.etag.mode = crc32b
9
--FILE--
10
<?php
11
echo "Test\n";
12
13
$file = new http\Message\Body(fopen(__FILE__, "r"));
14
$temp = new http\Message\Body;
15
$s = stat(__FILE__);
16
var_dump(
17
sprintf(
18
"%lx-%lx-%lx",
19
$s["ino"],$s["mtime"],$s["size"]
20
) === $file->etag()
21
);
22
var_dump($temp->etag());
23
24
?>
25
DONE
26
--EXPECT--
27
Test
28
bool(true)
29
string(8) "00000000"
30
DONE