
---- EXPECTED OUTPUT
bool(true)
should return previous chunk size (8192)
int(8192)
should be read without buffer ($count == 10000)
read with size: 10000
int(10000)
should elicit 3 writes of size 1 and return 3
write with size: 1
write with size: 1
write with size: 1
int(3)
should return previous chunk size (1)
int(1)
should elicit one read of size 100 (chunk size)
read with size: 100
int(100)
should elicit one read of size 100 (chunk size)
read with size: 100
int(50)
should elicit no read because there is sufficient cached data
int(50)
should elicit 2 writes of size 100 and one of size 50
write with size: 100
write with size: 100
write with size: 50
int(3)

error conditions

Warning: stream_set_chunk_size(): The chunk size must be a positive integer, given 0 in %s on line %d
bool(false)

Warning: stream_set_chunk_size(): The chunk size must be a positive integer, given -1 in %s on line %d
bool(false)

Warning: stream_set_chunk_size() expects parameter 2 to be long, array given in %s on line %d
bool(false)
---- ACTUAL OUTPUT
bool(true)
should return previous chunk size (8192)

Fatal error: Call to undefined function stream_set_chunk_size() in /root/mountpoint-genprog/genprog-many-bugs/php-bug-2011-01-18-95388b7cda-b9b1fb1827/php/ext/standard/tests/streams/stream_set_chunk_size.php on line 31
---- FAILED
