Make statSyscall in ext_file.cpp support relative paths by default.
commitbe40b135f062cdfb6a6abee5c50ba713d646799e
authorRafe Kettler <rafe.kettler@gmail.com>
Wed, 26 Mar 2014 06:43:33 +0000 (25 23:43 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 1 Apr 2014 00:58:57 +0000 (31 17:58 -0700)
tree9284a3b6ba9d84a239930ec7cfdaa0dbb378e822
parent8fc77291b3ab037afcf8a4f9ee344a9c5bdba12c
Make statSyscall in ext_file.cpp support relative paths by default.

This fixes a number of php5 incompatibilities -- specifically this fixes #1733, and gives relative path support that should exist to is_readable, is_writable, is_executable, fileperms, fileowner, etc. (all the file* functions for extracting stat fields).
Closes #1983

Reviewed By: @fredemmott

Differential Revision: D1240987
hphp/runtime/base/stream-wrapper-registry.cpp
hphp/runtime/base/stream-wrapper-registry.h
hphp/runtime/ext/ext_file.cpp
hphp/test/slow/ext_file/predicates.php
hphp/test/slow/ext_file/predicates.php.expect