Created
April 17, 2014 23:59
-
-
Save simonwelsh/11018011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/compiler/analysis/emitter.cpp b/hphp/compiler/analysis/emitter.cpp | |
index 8f931b4..41659ff 100644 | |
--- a/hphp/compiler/analysis/emitter.cpp | |
+++ b/hphp/compiler/analysis/emitter.cpp | |
@@ -5456,6 +5456,9 @@ void EmitterVisitor::emitBuiltinDefaultArg(Emitter& e, Variant& v, | |
case KindOfObject: | |
case KindOfResource: | |
case KindOfArray: | |
+ case KindOfInt64: | |
+ case KindOfDouble: | |
+ case KindOfBoolean: | |
e.Int(0); | |
break; | |
case KindOfUnknown: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment