1--TEST-- 2Calling bzerr* functions on non-bz2 streams 3--SKIPIF-- 4<?php if (!extension_loaded("bz2")) print "skip"; ?> 5--FILE-- 6<?php 7$f = fopen(__FILE__, 'r'); 8var_dump(bzerrno($f)); 9var_dump(bzerrstr($f)); 10var_dump(bzerror($f)); 11?> 12--EXPECTF-- 13Warning: bzerrno(): Stream is not a bz2 stream in %s on line %d 14bool(false) 15 16Warning: bzerrstr(): Stream is not a bz2 stream in %s on line %d 17bool(false) 18 19Warning: bzerror(): Stream is not a bz2 stream in %s on line %d 20bool(false) 21