1--TEST--
2SplFileObject::fwrite function - writing with magic_quotes_runtime ini set
3--FILE--
4<?php
5ini_set('magic_quotes_runtime',true);
6$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
7if(file_exists($file)) {
8	unlink($file);
9}
10$obj = New SplFileObject($file,'w');
11$obj->fwrite('"test" \'write\'');
12var_dump(file_get_contents($file));
13?>
14--CLEAN--
15<?php
16$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
17if(file_exists($file)) {
18	unlink($file);
19}
20?>
21--EXPECT--
22string(18) "\"test\" \'write\'"
23