Fixed require_once to only include file once even if the file has already been modified.
commit027d6a98cba97040075131917e1d5f9e25a13d20
authorMichael O'Farrell <michaelofarrell@fb.com>
Tue, 28 Mar 2017 03:24:24 +0000 (27 20:24 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 28 Mar 2017 03:51:01 +0000 (27 20:51 -0700)
treeb71d4aad0ec6d96b9a3a0cadf4297e05e7cc9df0
parentf6ebce1fc39352230a20220a28917282b4453763
Fixed require_once to only include file once even if the file has already been modified.

Summary:
This got introduced when fixing https://github.com/facebook/hhvm/issues/4797

Closes https://github.com/facebook/hhvm/issues/7722

Reviewed By: markw65

Differential Revision: D4779333

fbshipit-source-id: ab3bbc998812a7e75885ca5faed5824002724f67
hphp/runtime/base/unit-cache.cpp
hphp/test/slow/include/require_once_twice_modified.php [new file with mode: 0644]
hphp/test/slow/include/require_once_twice_modified.php.expect [new file with mode: 0644]
hphp/test/slow/include/require_once_twice_modified.php.norepo [new file with mode: 0644]