@@ -35,7 +35,7 @@ echo "should return previous chunk size (8192)\n";
3535var_dump (stream_set_chunk_size ($ f , 1 ));
3636echo "should be read without buffer ( \$count == 10000) \n" ;
3737var_dump (strlen (fread ($ f , 10000 )));
38- echo "should have no effect on writes \n" ;
38+ echo "should elicit 3 writes \n" ;
3939var_dump (fwrite ($ f , str_repeat ('b ' , 3 )));
4040
4141echo "should return previous chunk size (1) \n" ;
@@ -46,7 +46,7 @@ echo "should elicit one read of size 100 (chunk size)\n";
4646var_dump (strlen (fread ($ f , 50 )));
4747echo "should elicit no read because there is sufficient cached data \n" ;
4848var_dump (strlen (fread ($ f , 50 )));
49- echo "should have no effect on writes \n" ;
49+ echo "should elicit 3 writes \n" ;
5050var_dump (strlen (fwrite ($ f , str_repeat ('b ' , 250 ))));
5151
5252echo "\nerror conditions \n" ;
@@ -68,8 +68,10 @@ int(8192)
6868should be read without buffer ($count == 10000)
6969read with size: 10000
7070int(10000)
71- should have no effect on writes
72- write with size: 3
71+ should elicit 3 writes
72+ write with size: 1
73+ write with size: 1
74+ write with size: 1
7375int(3)
7476should return previous chunk size (1)
7577int(1)
@@ -81,8 +83,10 @@ read with size: 100
8183int(50)
8284should elicit no read because there is sufficient cached data
8385int(50)
84- should have no effect on writes
85- write with size: 250
86+ should elicit 3 writes
87+ write with size: 100
88+ write with size: 100
89+ write with size: 50
8690int(3)
8791
8892error conditions
0 commit comments