--TEST-- SplFileObject::fwrite function - writing with magic_quotes_runtime ini set --FILE-- fwrite('"test" \'write\''); var_dump(file_get_contents($file)); if(file_exists($file)) { unlink($file); } ?> --EXPECT-- string(18) "\"test\" \'write\'"