replaced exceptions with E_WARNING on read/write errors
updated PHP documentation