From 33c648168ee5e6795860a5876e86abbdc981253e Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Tue, 17 Feb 2015 10:17:23 -0800 Subject: [PATCH] Fix MCRouterException accessing undefined constants Summary: These are defined by the C++ in the MCRouter class, not MCRotuerException Reviewed By: @JoelMarcey Differential Revision: D1851707 --- hphp/runtime/ext/mcrouter/ext_mcrouter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hphp/runtime/ext/mcrouter/ext_mcrouter.php b/hphp/runtime/ext/mcrouter/ext_mcrouter.php index d6f1aa3ae32..be9573c632c 100644 --- a/hphp/runtime/ext/mcrouter/ext_mcrouter.php +++ b/hphp/runtime/ext/mcrouter/ext_mcrouter.php @@ -10,8 +10,8 @@ class MCRouterException extends Exception { public function __construct( string $message, - protected int $op = self::mc_op_unknown, - int $reply = self::mc_res_unknown, + protected int $op = MCRouter::mc_op_unknown, + int $reply = MCRouter::mc_res_unknown, protected string $key = "", ) { parent::__construct($message, $reply); -- 2.11.4.GIT