Add coinflip parameter to __Deprecated
commit0572b05ec73828c935231486ba9a1451239740a4
authorJez Ng <jezng@fb.com>
Thu, 24 Sep 2015 19:28:50 +0000 (24 12:28 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Thu, 24 Sep 2015 20:00:35 +0000 (24 13:00 -0700)
tree2c2c1cfd9471cb54921f9d1547179e228481bab7
parent799c136e865a95f6bed8988f37adbab2912af50a
Add coinflip parameter to __Deprecated

Summary: Makes it more useful by avoiding the runtime perf hit from
over-logging

Reviewed By: @jano

Differential Revision: D2460936
hphp/compiler/analysis/emitter.cpp
hphp/compiler/analysis/function_scope.cpp
hphp/compiler/analysis/function_scope.h
hphp/runtime/ext/std/ext_std_errorfunc.cpp
hphp/runtime/ext/std/ext_std_errorfunc.h
hphp/runtime/ext/std/ext_std_errorfunc.php
hphp/test/slow/lang/deprecated_sampled.php [new file with mode: 0644]
hphp/test/slow/lang/deprecated_sampled.php.expectf [new file with mode: 0644]