GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
$dm = DocumentManager::getInstance();
$fileName = tempnam(null, null);
$file = new \Documents\File();
echo ($file->getFile()->getBytes()); // "abc"
echo ($file->getFile()->getBytes()); // "abc", *should be "123"*
Could you turn this code example into a failing test case? File creation is probably best done with tempnam() and sys_get_temp_dir() for this purpose. Thanks.
You mean like this?
A pull request with a failing test case is preferable.
GridFS is getting a rewrite for 2.0, so I'm closing this (and we still need a test case).