--TEST-- Bug #66322 (COMPersistHelper::SaveToFile can save to wrong location) --SKIPIF-- --FILE-- Documents->Add(); $ph = new COMPersistHelper($doc); $filename = __DIR__ . '\\..\\' . basename(__DIR__) . '\\66322.docx'; $ph->SaveToFile($filename); var_dump(file_exists($filename)); $w->Quit(); ?> --EXPECT-- bool(true)