From c4357440b0bfba5ae48b81d690bb53582984f25e Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Wed, 8 May 2013 10:05:47 -0700 Subject: [PATCH] slice up builtin_extension This .expectf files turns into a huge regex and is our largest one. Instead lets have many small tests. I made it with some fancy bash script. --- .../expression/include_expression.cpp | 6 +- .../test/quick/builtin_extension_Collator.php | 8 + .../builtin_extension_Collator.php.expectf | 59 +++++++ hphp/test/quick/builtin_extension_DOMAttr.php | 8 + .../builtin_extension_DOMAttr.php.expectf | 77 +++++++++ .../builtin_extension_DOMCDATASection.php | 8 + ...ltin_extension_DOMCDATASection.php.expectf | 89 +++++++++++ .../builtin_extension_DOMCharacterData.php | 8 + ...tin_extension_DOMCharacterData.php.expectf | 84 ++++++++++ .../quick/builtin_extension_DOMComment.php | 8 + .../builtin_extension_DOMComment.php.expectf | 84 ++++++++++ .../quick/builtin_extension_DOMDocument.php | 8 + .../builtin_extension_DOMDocument.php.expectf | 134 ++++++++++++++++ .../builtin_extension_DOMDocumentFragment.php | 8 + ..._extension_DOMDocumentFragment.php.expectf | 76 +++++++++ .../builtin_extension_DOMDocumentType.php | 8 + ...ltin_extension_DOMDocumentType.php.expectf | 74 +++++++++ .../quick/builtin_extension_DOMElement.php | 8 + .../builtin_extension_DOMElement.php.expectf | 111 +++++++++++++ .../quick/builtin_extension_DOMEntity.php | 8 + .../builtin_extension_DOMEntity.php.expectf | 74 +++++++++ .../builtin_extension_DOMEntityReference.php | 8 + ...n_extension_DOMEntityReference.php.expectf | 75 +++++++++ .../builtin_extension_DOMImplementation.php | 8 + ...in_extension_DOMImplementation.php.expectf | 40 +++++ .../builtin_extension_DOMNamedNodeMap.php | 8 + ...ltin_extension_DOMNamedNodeMap.php.expectf | 48 ++++++ hphp/test/quick/builtin_extension_DOMNode.php | 8 + .../builtin_extension_DOMNode.php.expectf | 74 +++++++++ .../builtin_extension_DOMNodeIterator.php | 8 + ...ltin_extension_DOMNodeIterator.php.expectf | 44 ++++++ .../quick/builtin_extension_DOMNodeList.php | 8 + .../builtin_extension_DOMNodeList.php.expectf | 44 ++++++ .../quick/builtin_extension_DOMNotation.php | 8 + .../builtin_extension_DOMNotation.php.expectf | 74 +++++++++ ...tin_extension_DOMProcessingInstruction.php | 8 + ...nsion_DOMProcessingInstruction.php.expectf | 75 +++++++++ hphp/test/quick/builtin_extension_DOMText.php | 8 + .../builtin_extension_DOMText.php.expectf | 88 +++++++++++ .../test/quick/builtin_extension_DOMXPath.php | 8 + .../builtin_extension_DOMXPath.php.expectf | 49 ++++++ .../quick/builtin_extension_DateInterval.php | 8 + ...builtin_extension_DateInterval.php.expectf | 43 +++++ .../test/quick/builtin_extension_DateTime.php | 27 ++++ .../builtin_extension_DateTime.php.expectf | 68 ++++++++ .../quick/builtin_extension_DateTimeZone.php | 8 + ...builtin_extension_DateTimeZone.php.expectf | 47 ++++++ .../builtin_extension_DebuggerClient.php | 8 + ...iltin_extension_DebuggerClient.php.expectf | 40 +++++ ...builtin_extension_DebuggerProxyCmdUser.php | 8 + ...extension_DebuggerProxyCmdUser.php.expectf | 38 +++++ .../builtin_extension_EncodingDetector.php | 8 + ...tin_extension_EncodingDetector.php.expectf | 42 +++++ .../quick/builtin_extension_EncodingMatch.php | 8 + ...uiltin_extension_EncodingMatch.php.expectf | 44 ++++++ .../quick/builtin_extension_ImageSprite.php | 8 + .../builtin_extension_ImageSprite.php.expectf | 56 +++++++ .../quick/builtin_extension_LibXMLError.php | 8 + .../builtin_extension_LibXMLError.php.expectf | 34 ++++ hphp/test/quick/builtin_extension_Locale.php | 8 + .../builtin_extension_Locale.php.expectf | 34 ++++ .../test/quick/builtin_extension_Memcache.php | 8 + .../builtin_extension_Memcache.php.expectf | 74 +++++++++ .../quick/builtin_extension_Memcached.php | 8 + .../builtin_extension_Memcached.php.expectf | 108 +++++++++++++ .../quick/builtin_extension_Normalizer.php | 8 + .../builtin_extension_Normalizer.php.expectf | 38 +++++ hphp/test/quick/builtin_extension_SQLite3.php | 8 + .../builtin_extension_SQLite3.php.expectf | 69 ++++++++ .../quick/builtin_extension_SQLite3Result.php | 8 + ...uiltin_extension_SQLite3Result.php.expectf | 46 ++++++ .../quick/builtin_extension_SQLite3Stmt.php | 8 + .../builtin_extension_SQLite3Stmt.php.expectf | 49 ++++++ .../builtin_extension_SimpleXMLElement.php | 8 + ...tin_extension_SimpleXMLElement.php.expectf | 77 +++++++++ ...tin_extension_SimpleXMLElementIterator.php | 8 + ...nsion_SimpleXMLElementIterator.php.expectf | 44 ++++++ .../quick/builtin_extension_SoapClient.php | 8 + .../builtin_extension_SoapClient.php.expectf | 59 +++++++ .../quick/builtin_extension_SoapHeader.php | 8 + .../builtin_extension_SoapHeader.php.expectf | 35 ++++ .../quick/builtin_extension_SoapParam.php | 8 + .../builtin_extension_SoapParam.php.expectf | 35 ++++ .../quick/builtin_extension_SoapServer.php | 8 + .../builtin_extension_SoapServer.php.expectf | 51 ++++++ hphp/test/quick/builtin_extension_SoapVar.php | 8 + .../builtin_extension_SoapVar.php.expectf | 35 ++++ .../quick/builtin_extension_SpoofChecker.php | 8 + ...builtin_extension_SpoofChecker.php.expectf | 42 +++++ .../quick/builtin_extension_StringBuffer.php | 32 ++++ ...builtin_extension_StringBuffer.php.expectf | 58 +++++++ .../quick/builtin_extension_XMLReader.php | 8 + .../builtin_extension_XMLReader.php.expectf | 86 ++++++++++ .../quick/builtin_extension_XMLWriter.php | 8 + .../builtin_extension_XMLWriter.php.expectf | 118 ++++++++++++++ hphp/test/quick/builtin_extension_phpmcc.php | 8 + .../builtin_extension_phpmcc.php.expectf | 149 ++++++++++++++++++ hphp/test/quick/builtin_extensions.inc | 42 +++++ 98 files changed, 3566 insertions(+), 1 deletion(-) create mode 100644 hphp/test/quick/builtin_extension_Collator.php create mode 100644 hphp/test/quick/builtin_extension_Collator.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMAttr.php create mode 100644 hphp/test/quick/builtin_extension_DOMAttr.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMCDATASection.php create mode 100644 hphp/test/quick/builtin_extension_DOMCDATASection.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMCharacterData.php create mode 100644 hphp/test/quick/builtin_extension_DOMCharacterData.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMComment.php create mode 100644 hphp/test/quick/builtin_extension_DOMComment.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMDocument.php create mode 100644 hphp/test/quick/builtin_extension_DOMDocument.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMDocumentFragment.php create mode 100644 hphp/test/quick/builtin_extension_DOMDocumentFragment.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMDocumentType.php create mode 100644 hphp/test/quick/builtin_extension_DOMDocumentType.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMElement.php create mode 100644 hphp/test/quick/builtin_extension_DOMElement.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMEntity.php create mode 100644 hphp/test/quick/builtin_extension_DOMEntity.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMEntityReference.php create mode 100644 hphp/test/quick/builtin_extension_DOMEntityReference.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMImplementation.php create mode 100644 hphp/test/quick/builtin_extension_DOMImplementation.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMNamedNodeMap.php create mode 100644 hphp/test/quick/builtin_extension_DOMNamedNodeMap.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMNode.php create mode 100644 hphp/test/quick/builtin_extension_DOMNode.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMNodeIterator.php create mode 100644 hphp/test/quick/builtin_extension_DOMNodeIterator.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMNodeList.php create mode 100644 hphp/test/quick/builtin_extension_DOMNodeList.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMNotation.php create mode 100644 hphp/test/quick/builtin_extension_DOMNotation.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMProcessingInstruction.php create mode 100644 hphp/test/quick/builtin_extension_DOMProcessingInstruction.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMText.php create mode 100644 hphp/test/quick/builtin_extension_DOMText.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DOMXPath.php create mode 100644 hphp/test/quick/builtin_extension_DOMXPath.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DateInterval.php create mode 100644 hphp/test/quick/builtin_extension_DateInterval.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DateTime.php create mode 100644 hphp/test/quick/builtin_extension_DateTime.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DateTimeZone.php create mode 100644 hphp/test/quick/builtin_extension_DateTimeZone.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DebuggerClient.php create mode 100644 hphp/test/quick/builtin_extension_DebuggerClient.php.expectf create mode 100644 hphp/test/quick/builtin_extension_DebuggerProxyCmdUser.php create mode 100644 hphp/test/quick/builtin_extension_DebuggerProxyCmdUser.php.expectf create mode 100644 hphp/test/quick/builtin_extension_EncodingDetector.php create mode 100644 hphp/test/quick/builtin_extension_EncodingDetector.php.expectf create mode 100644 hphp/test/quick/builtin_extension_EncodingMatch.php create mode 100644 hphp/test/quick/builtin_extension_EncodingMatch.php.expectf create mode 100644 hphp/test/quick/builtin_extension_ImageSprite.php create mode 100644 hphp/test/quick/builtin_extension_ImageSprite.php.expectf create mode 100644 hphp/test/quick/builtin_extension_LibXMLError.php create mode 100644 hphp/test/quick/builtin_extension_LibXMLError.php.expectf create mode 100644 hphp/test/quick/builtin_extension_Locale.php create mode 100644 hphp/test/quick/builtin_extension_Locale.php.expectf create mode 100644 hphp/test/quick/builtin_extension_Memcache.php create mode 100644 hphp/test/quick/builtin_extension_Memcache.php.expectf create mode 100644 hphp/test/quick/builtin_extension_Memcached.php create mode 100644 hphp/test/quick/builtin_extension_Memcached.php.expectf create mode 100644 hphp/test/quick/builtin_extension_Normalizer.php create mode 100644 hphp/test/quick/builtin_extension_Normalizer.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SQLite3.php create mode 100644 hphp/test/quick/builtin_extension_SQLite3.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SQLite3Result.php create mode 100644 hphp/test/quick/builtin_extension_SQLite3Result.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SQLite3Stmt.php create mode 100644 hphp/test/quick/builtin_extension_SQLite3Stmt.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SimpleXMLElement.php create mode 100644 hphp/test/quick/builtin_extension_SimpleXMLElement.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SimpleXMLElementIterator.php create mode 100644 hphp/test/quick/builtin_extension_SimpleXMLElementIterator.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SoapClient.php create mode 100644 hphp/test/quick/builtin_extension_SoapClient.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SoapHeader.php create mode 100644 hphp/test/quick/builtin_extension_SoapHeader.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SoapParam.php create mode 100644 hphp/test/quick/builtin_extension_SoapParam.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SoapServer.php create mode 100644 hphp/test/quick/builtin_extension_SoapServer.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SoapVar.php create mode 100644 hphp/test/quick/builtin_extension_SoapVar.php.expectf create mode 100644 hphp/test/quick/builtin_extension_SpoofChecker.php create mode 100644 hphp/test/quick/builtin_extension_SpoofChecker.php.expectf create mode 100644 hphp/test/quick/builtin_extension_StringBuffer.php create mode 100644 hphp/test/quick/builtin_extension_StringBuffer.php.expectf create mode 100644 hphp/test/quick/builtin_extension_XMLReader.php create mode 100644 hphp/test/quick/builtin_extension_XMLReader.php.expectf create mode 100644 hphp/test/quick/builtin_extension_XMLWriter.php create mode 100644 hphp/test/quick/builtin_extension_XMLWriter.php.expectf create mode 100644 hphp/test/quick/builtin_extension_phpmcc.php create mode 100644 hphp/test/quick/builtin_extension_phpmcc.php.expectf create mode 100644 hphp/test/quick/builtin_extensions.inc diff --git a/hphp/compiler/expression/include_expression.cpp b/hphp/compiler/expression/include_expression.cpp index 37421ec5e..ae8f203aa 100644 --- a/hphp/compiler/expression/include_expression.cpp +++ b/hphp/compiler/expression/include_expression.cpp @@ -162,7 +162,11 @@ string IncludeExpression::CheckInclude(ConstructPtr includeExp, if (var == "__DIR__") { var = ""; - lit = Util::safe_dirname(container) + lit; + // get_include_file_path will check relative to the current file's dir + // as long as the first char isn't a / + if (lit[0] == '/') { + lit = lit.substr(1); + } } string included = get_include_file_path(container, var, lit, documentRoot); diff --git a/hphp/test/quick/builtin_extension_Collator.php b/hphp/test/quick/builtin_extension_Collator.php new file mode 100644 index 000000000..5d80706ae --- /dev/null +++ b/hphp/test/quick/builtin_extension_Collator.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "asort" + [2]=> + string(7) "compare" + [3]=> + string(6) "create" + [4]=> + string(12) "getattribute" + [5]=> + string(12) "geterrorcode" + [6]=> + string(15) "geterrormessage" + [7]=> + string(9) "getlocale" + [8]=> + string(11) "getstrength" + [9]=> + string(12) "setattribute" + [10]=> + string(11) "setstrength" + [11]=> + string(16) "sortwithsortkeys" + [12]=> + string(4) "sort" +} +================ +A_Collator +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_Collator)#3 (1) { + ["___x"]=> + NULL +} +string(35) "O:10:"A_Collator":1:{s:4:"___x";N;}" +object(A_Collator)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMAttr.php b/hphp/test/quick/builtin_extension_DOMAttr.php new file mode 100644 index 000000000..02f762576 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMAttr.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(4) "isId" + [2]=> + string(5) "__get" + [3]=> + string(5) "__set" + [4]=> + string(7) "__isset" + [5]=> + string(11) "appendChild" + [6]=> + string(9) "cloneNode" + [7]=> + string(9) "getLineNo" + [8]=> + string(13) "hasAttributes" + [9]=> + string(13) "hasChildNodes" + [10]=> + string(12) "insertBefore" + [11]=> + string(18) "isDefaultNamespace" + [12]=> + string(10) "isSameNode" + [13]=> + string(11) "isSupported" + [14]=> + string(18) "lookupNamespaceUri" + [15]=> + string(12) "lookupPrefix" + [16]=> + string(9) "normalize" + [17]=> + string(11) "removeChild" + [18]=> + string(12) "replaceChild" + [19]=> + string(4) "c14n" + [20]=> + string(8) "c14nfile" + [21]=> + string(11) "getNodePath" +} +================ +A_DOMAttr +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMAttr)#3 (1) { + ["___x"]=> + NULL +} +string(33) "O:9:"A_DOMAttr":1:{s:4:"___x";N;}" +object(A_DOMAttr)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMCDATASection.php b/hphp/test/quick/builtin_extension_DOMCDATASection.php new file mode 100644 index 000000000..67471bc17 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMCDATASection.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(28) "isWhitespaceInElementContent" + [2]=> + string(9) "splitText" + [3]=> + string(5) "__get" + [4]=> + string(5) "__set" + [5]=> + string(7) "__isset" + [6]=> + string(10) "appendData" + [7]=> + string(10) "deleteData" + [8]=> + string(10) "insertData" + [9]=> + string(11) "replaceData" + [10]=> + string(13) "substringData" + [11]=> + string(11) "appendChild" + [12]=> + string(9) "cloneNode" + [13]=> + string(9) "getLineNo" + [14]=> + string(13) "hasAttributes" + [15]=> + string(13) "hasChildNodes" + [16]=> + string(12) "insertBefore" + [17]=> + string(18) "isDefaultNamespace" + [18]=> + string(10) "isSameNode" + [19]=> + string(11) "isSupported" + [20]=> + string(18) "lookupNamespaceUri" + [21]=> + string(12) "lookupPrefix" + [22]=> + string(9) "normalize" + [23]=> + string(11) "removeChild" + [24]=> + string(12) "replaceChild" + [25]=> + string(4) "c14n" + [26]=> + string(8) "c14nfile" + [27]=> + string(11) "getNodePath" +} +================ +A_DOMCDATASection +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMCDATASection)#3 (1) { + ["___x"]=> + NULL +} +string(42) "O:17:"A_DOMCDATASection":1:{s:4:"___x";N;}" +object(A_DOMCDATASection)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMCharacterData.php b/hphp/test/quick/builtin_extension_DOMCharacterData.php new file mode 100644 index 000000000..53ed0e1eb --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMCharacterData.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "appendData" + [2]=> + string(10) "deleteData" + [3]=> + string(10) "insertData" + [4]=> + string(11) "replaceData" + [5]=> + string(13) "substringData" + [6]=> + string(5) "__get" + [7]=> + string(5) "__set" + [8]=> + string(7) "__isset" + [9]=> + string(11) "appendChild" + [10]=> + string(9) "cloneNode" + [11]=> + string(9) "getLineNo" + [12]=> + string(13) "hasAttributes" + [13]=> + string(13) "hasChildNodes" + [14]=> + string(12) "insertBefore" + [15]=> + string(18) "isDefaultNamespace" + [16]=> + string(10) "isSameNode" + [17]=> + string(11) "isSupported" + [18]=> + string(18) "lookupNamespaceUri" + [19]=> + string(12) "lookupPrefix" + [20]=> + string(9) "normalize" + [21]=> + string(11) "removeChild" + [22]=> + string(12) "replaceChild" + [23]=> + string(4) "c14n" + [24]=> + string(8) "c14nfile" + [25]=> + string(11) "getNodePath" +} +================ +A_DOMCharacterData +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMCharacterData)#3 (1) { + ["___x"]=> + NULL +} +string(43) "O:18:"A_DOMCharacterData":1:{s:4:"___x";N;}" +object(A_DOMCharacterData)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMComment.php b/hphp/test/quick/builtin_extension_DOMComment.php new file mode 100644 index 000000000..fc1016d08 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMComment.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "appendData" + [2]=> + string(10) "deleteData" + [3]=> + string(10) "insertData" + [4]=> + string(11) "replaceData" + [5]=> + string(13) "substringData" + [6]=> + string(5) "__get" + [7]=> + string(5) "__set" + [8]=> + string(7) "__isset" + [9]=> + string(11) "appendChild" + [10]=> + string(9) "cloneNode" + [11]=> + string(9) "getLineNo" + [12]=> + string(13) "hasAttributes" + [13]=> + string(13) "hasChildNodes" + [14]=> + string(12) "insertBefore" + [15]=> + string(18) "isDefaultNamespace" + [16]=> + string(10) "isSameNode" + [17]=> + string(11) "isSupported" + [18]=> + string(18) "lookupNamespaceUri" + [19]=> + string(12) "lookupPrefix" + [20]=> + string(9) "normalize" + [21]=> + string(11) "removeChild" + [22]=> + string(12) "replaceChild" + [23]=> + string(4) "c14n" + [24]=> + string(8) "c14nfile" + [25]=> + string(11) "getNodePath" +} +================ +A_DOMComment +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMComment)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_DOMComment":1:{s:4:"___x";N;}" +object(A_DOMComment)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMDocument.php b/hphp/test/quick/builtin_extension_DOMDocument.php new file mode 100644 index 000000000..f0c0f38db --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMDocument.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(15) "createAttribute" + [2]=> + string(17) "createAttributens" + [3]=> + string(18) "createCDATASection" + [4]=> + string(13) "createComment" + [5]=> + string(22) "createDocumentFragment" + [6]=> + string(13) "createElement" + [7]=> + string(15) "createElementNS" + [8]=> + string(21) "createEntityReference" + [9]=> + string(27) "createProcessingInstruction" + [10]=> + string(14) "createTextNode" + [11]=> + string(14) "getElementById" + [12]=> + string(20) "getElementsByTagName" + [13]=> + string(22) "getElementsByTagNameNS" + [14]=> + string(10) "importNode" + [15]=> + string(4) "load" + [16]=> + string(8) "loadHTML" + [17]=> + string(12) "loadHTMLFile" + [18]=> + string(7) "loadXML" + [19]=> + string(17) "normalizeDocument" + [20]=> + string(17) "registerNodeClass" + [21]=> + string(15) "relaxNGValidate" + [22]=> + string(21) "relaxNGValidateSource" + [23]=> + string(4) "save" + [24]=> + string(8) "saveHTML" + [25]=> + string(12) "saveHTMLFile" + [26]=> + string(7) "saveXML" + [27]=> + string(14) "schemaValidate" + [28]=> + string(20) "schemaValidateSource" + [29]=> + string(8) "validate" + [30]=> + string(8) "xinclude" + [31]=> + string(5) "__get" + [32]=> + string(5) "__set" + [33]=> + string(7) "__isset" + [34]=> + string(11) "appendChild" + [35]=> + string(9) "cloneNode" + [36]=> + string(9) "getLineNo" + [37]=> + string(13) "hasAttributes" + [38]=> + string(13) "hasChildNodes" + [39]=> + string(12) "insertBefore" + [40]=> + string(18) "isDefaultNamespace" + [41]=> + string(10) "isSameNode" + [42]=> + string(11) "isSupported" + [43]=> + string(18) "lookupNamespaceUri" + [44]=> + string(12) "lookupPrefix" + [45]=> + string(9) "normalize" + [46]=> + string(11) "removeChild" + [47]=> + string(12) "replaceChild" + [48]=> + string(4) "c14n" + [49]=> + string(8) "c14nfile" + [50]=> + string(11) "getNodePath" +} +================ +A_DOMDocument +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMDocument)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_DOMDocument":1:{s:4:"___x";N;}" +object(A_DOMDocument)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMDocumentFragment.php b/hphp/test/quick/builtin_extension_DOMDocumentFragment.php new file mode 100644 index 000000000..66cb9dd5a --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMDocumentFragment.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(9) "appendXML" + [2]=> + string(11) "appendChild" + [3]=> + string(9) "cloneNode" + [4]=> + string(9) "getLineNo" + [5]=> + string(13) "hasAttributes" + [6]=> + string(13) "hasChildNodes" + [7]=> + string(12) "insertBefore" + [8]=> + string(18) "isDefaultNamespace" + [9]=> + string(10) "isSameNode" + [10]=> + string(11) "isSupported" + [11]=> + string(18) "lookupNamespaceUri" + [12]=> + string(12) "lookupPrefix" + [13]=> + string(9) "normalize" + [14]=> + string(11) "removeChild" + [15]=> + string(12) "replaceChild" + [16]=> + string(4) "c14n" + [17]=> + string(8) "c14nfile" + [18]=> + string(11) "getNodePath" + [19]=> + string(5) "__get" + [20]=> + string(5) "__set" + [21]=> + string(7) "__isset" +} +================ +A_DOMDocumentFragment +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMDocumentFragment)#3 (1) { + ["___x"]=> + NULL +} +string(46) "O:21:"A_DOMDocumentFragment":1:{s:4:"___x";N;}" +object(A_DOMDocumentFragment)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMDocumentType.php b/hphp/test/quick/builtin_extension_DOMDocumentType.php new file mode 100644 index 000000000..941bc5352 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMDocumentType.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(7) "__isset" + [4]=> + string(11) "appendChild" + [5]=> + string(9) "cloneNode" + [6]=> + string(9) "getLineNo" + [7]=> + string(13) "hasAttributes" + [8]=> + string(13) "hasChildNodes" + [9]=> + string(12) "insertBefore" + [10]=> + string(18) "isDefaultNamespace" + [11]=> + string(10) "isSameNode" + [12]=> + string(11) "isSupported" + [13]=> + string(18) "lookupNamespaceUri" + [14]=> + string(12) "lookupPrefix" + [15]=> + string(9) "normalize" + [16]=> + string(11) "removeChild" + [17]=> + string(12) "replaceChild" + [18]=> + string(4) "c14n" + [19]=> + string(8) "c14nfile" + [20]=> + string(11) "getNodePath" +} +================ +A_DOMDocumentType +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMDocumentType)#3 (1) { + ["___x"]=> + NULL +} +string(42) "O:17:"A_DOMDocumentType":1:{s:4:"___x";N;}" +object(A_DOMDocumentType)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMElement.php b/hphp/test/quick/builtin_extension_DOMElement.php new file mode 100644 index 000000000..d46ce7e26 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMElement.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(12) "getAttribute" + [2]=> + string(16) "getAttributeNode" + [3]=> + string(18) "getAttributeNodeNS" + [4]=> + string(14) "getAttributeNS" + [5]=> + string(20) "getElementsByTagName" + [6]=> + string(22) "getElementsByTagNameNS" + [7]=> + string(12) "hasAttribute" + [8]=> + string(14) "hasAttributeNS" + [9]=> + string(15) "removeAttribute" + [10]=> + string(19) "removeAttributeNode" + [11]=> + string(17) "removeAttributeNS" + [12]=> + string(12) "setAttribute" + [13]=> + string(16) "setAttributeNode" + [14]=> + string(18) "setAttributeNodeNS" + [15]=> + string(14) "setAttributeNS" + [16]=> + string(14) "setIDAttribute" + [17]=> + string(18) "setIDAttributeNode" + [18]=> + string(16) "setIDAttributeNS" + [19]=> + string(5) "__get" + [20]=> + string(5) "__set" + [21]=> + string(7) "__isset" + [22]=> + string(11) "appendChild" + [23]=> + string(9) "cloneNode" + [24]=> + string(9) "getLineNo" + [25]=> + string(13) "hasAttributes" + [26]=> + string(13) "hasChildNodes" + [27]=> + string(12) "insertBefore" + [28]=> + string(18) "isDefaultNamespace" + [29]=> + string(10) "isSameNode" + [30]=> + string(11) "isSupported" + [31]=> + string(18) "lookupNamespaceUri" + [32]=> + string(12) "lookupPrefix" + [33]=> + string(9) "normalize" + [34]=> + string(11) "removeChild" + [35]=> + string(12) "replaceChild" + [36]=> + string(4) "c14n" + [37]=> + string(8) "c14nfile" + [38]=> + string(11) "getNodePath" +} +================ +A_DOMElement +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMElement)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_DOMElement":1:{s:4:"___x";N;}" +object(A_DOMElement)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMEntity.php b/hphp/test/quick/builtin_extension_DOMEntity.php new file mode 100644 index 000000000..472aff8cd --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMEntity.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(7) "__isset" + [4]=> + string(11) "appendChild" + [5]=> + string(9) "cloneNode" + [6]=> + string(9) "getLineNo" + [7]=> + string(13) "hasAttributes" + [8]=> + string(13) "hasChildNodes" + [9]=> + string(12) "insertBefore" + [10]=> + string(18) "isDefaultNamespace" + [11]=> + string(10) "isSameNode" + [12]=> + string(11) "isSupported" + [13]=> + string(18) "lookupNamespaceUri" + [14]=> + string(12) "lookupPrefix" + [15]=> + string(9) "normalize" + [16]=> + string(11) "removeChild" + [17]=> + string(12) "replaceChild" + [18]=> + string(4) "c14n" + [19]=> + string(8) "c14nfile" + [20]=> + string(11) "getNodePath" +} +================ +A_DOMEntity +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMEntity)#3 (1) { + ["___x"]=> + NULL +} +string(36) "O:11:"A_DOMEntity":1:{s:4:"___x";N;}" +object(A_DOMEntity)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMEntityReference.php b/hphp/test/quick/builtin_extension_DOMEntityReference.php new file mode 100644 index 000000000..4aa427646 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMEntityReference.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(11) "appendChild" + [2]=> + string(9) "cloneNode" + [3]=> + string(9) "getLineNo" + [4]=> + string(13) "hasAttributes" + [5]=> + string(13) "hasChildNodes" + [6]=> + string(12) "insertBefore" + [7]=> + string(18) "isDefaultNamespace" + [8]=> + string(10) "isSameNode" + [9]=> + string(11) "isSupported" + [10]=> + string(18) "lookupNamespaceUri" + [11]=> + string(12) "lookupPrefix" + [12]=> + string(9) "normalize" + [13]=> + string(11) "removeChild" + [14]=> + string(12) "replaceChild" + [15]=> + string(4) "c14n" + [16]=> + string(8) "c14nfile" + [17]=> + string(11) "getNodePath" + [18]=> + string(5) "__get" + [19]=> + string(5) "__set" + [20]=> + string(7) "__isset" +} +================ +A_DOMEntityReference +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMEntityReference)#3 (1) { + ["___x"]=> + NULL +} +string(45) "O:20:"A_DOMEntityReference":1:{s:4:"___x";N;}" +object(A_DOMEntityReference)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMImplementation.php b/hphp/test/quick/builtin_extension_DOMImplementation.php new file mode 100644 index 000000000..cf451613e --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMImplementation.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(14) "createDocument" + [2]=> + string(18) "createDocumentType" + [3]=> + string(10) "hasFeature" +} +================ +A_DOMImplementation +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMImplementation)#3 (1) { + ["___x"]=> + NULL +} +string(44) "O:19:"A_DOMImplementation":1:{s:4:"___x";N;}" +object(A_DOMImplementation)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMNamedNodeMap.php b/hphp/test/quick/builtin_extension_DOMNamedNodeMap.php new file mode 100644 index 000000000..2b985f4ab --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMNamedNodeMap.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(12) "getNamedItem" + [2]=> + string(14) "getNamedItemNS" + [3]=> + string(4) "item" + [4]=> + string(5) "__get" + [5]=> + string(5) "__set" + [6]=> + string(7) "__isset" + [7]=> + string(11) "getIterator" +} +================ +A_DOMNamedNodeMap +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMNamedNodeMap)#3 (1) { + ["___x"]=> + NULL +} +string(42) "O:17:"A_DOMNamedNodeMap":1:{s:4:"___x";N;}" +object(A_DOMNamedNodeMap)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMNode.php b/hphp/test/quick/builtin_extension_DOMNode.php new file mode 100644 index 000000000..22799ad25 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMNode.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(11) "appendChild" + [2]=> + string(9) "cloneNode" + [3]=> + string(9) "getLineNo" + [4]=> + string(13) "hasAttributes" + [5]=> + string(13) "hasChildNodes" + [6]=> + string(12) "insertBefore" + [7]=> + string(18) "isDefaultNamespace" + [8]=> + string(10) "isSameNode" + [9]=> + string(11) "isSupported" + [10]=> + string(18) "lookupNamespaceUri" + [11]=> + string(12) "lookupPrefix" + [12]=> + string(9) "normalize" + [13]=> + string(11) "removeChild" + [14]=> + string(12) "replaceChild" + [15]=> + string(4) "c14n" + [16]=> + string(8) "c14nfile" + [17]=> + string(11) "getNodePath" + [18]=> + string(5) "__get" + [19]=> + string(5) "__set" + [20]=> + string(7) "__isset" +} +================ +A_DOMNode +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMNode)#3 (1) { + ["___x"]=> + NULL +} +string(33) "O:9:"A_DOMNode":1:{s:4:"___x";N;}" +object(A_DOMNode)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMNodeIterator.php b/hphp/test/quick/builtin_extension_DOMNodeIterator.php new file mode 100644 index 000000000..4655efab2 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMNodeIterator.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "current" + [2]=> + string(3) "key" + [3]=> + string(4) "next" + [4]=> + string(6) "rewind" + [5]=> + string(5) "valid" +} +================ +A_DOMNodeIterator +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMNodeIterator)#3 (1) { + ["___x"]=> + NULL +} +string(42) "O:17:"A_DOMNodeIterator":1:{s:4:"___x";N;}" +object(A_DOMNodeIterator)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMNodeList.php b/hphp/test/quick/builtin_extension_DOMNodeList.php new file mode 100644 index 000000000..fdc6c4431 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMNodeList.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(4) "item" + [2]=> + string(5) "__get" + [3]=> + string(5) "__set" + [4]=> + string(7) "__isset" + [5]=> + string(11) "getIterator" +} +================ +A_DOMNodeList +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMNodeList)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_DOMNodeList":1:{s:4:"___x";N;}" +object(A_DOMNodeList)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMNotation.php b/hphp/test/quick/builtin_extension_DOMNotation.php new file mode 100644 index 000000000..2f06522a5 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMNotation.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(7) "__isset" + [4]=> + string(11) "appendChild" + [5]=> + string(9) "cloneNode" + [6]=> + string(9) "getLineNo" + [7]=> + string(13) "hasAttributes" + [8]=> + string(13) "hasChildNodes" + [9]=> + string(12) "insertBefore" + [10]=> + string(18) "isDefaultNamespace" + [11]=> + string(10) "isSameNode" + [12]=> + string(11) "isSupported" + [13]=> + string(18) "lookupNamespaceUri" + [14]=> + string(12) "lookupPrefix" + [15]=> + string(9) "normalize" + [16]=> + string(11) "removeChild" + [17]=> + string(12) "replaceChild" + [18]=> + string(4) "c14n" + [19]=> + string(8) "c14nfile" + [20]=> + string(11) "getNodePath" +} +================ +A_DOMNotation +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMNotation)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_DOMNotation":1:{s:4:"___x";N;}" +object(A_DOMNotation)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMProcessingInstruction.php b/hphp/test/quick/builtin_extension_DOMProcessingInstruction.php new file mode 100644 index 000000000..e381270c8 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMProcessingInstruction.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(7) "__isset" + [4]=> + string(11) "appendChild" + [5]=> + string(9) "cloneNode" + [6]=> + string(9) "getLineNo" + [7]=> + string(13) "hasAttributes" + [8]=> + string(13) "hasChildNodes" + [9]=> + string(12) "insertBefore" + [10]=> + string(18) "isDefaultNamespace" + [11]=> + string(10) "isSameNode" + [12]=> + string(11) "isSupported" + [13]=> + string(18) "lookupNamespaceUri" + [14]=> + string(12) "lookupPrefix" + [15]=> + string(9) "normalize" + [16]=> + string(11) "removeChild" + [17]=> + string(12) "replaceChild" + [18]=> + string(4) "c14n" + [19]=> + string(8) "c14nfile" + [20]=> + string(11) "getNodePath" +} +================ +A_DOMProcessingInstruction +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMProcessingInstruction)#3 (1) { + ["___x"]=> + NULL +} +string(51) "O:26:"A_DOMProcessingInstruction":1:{s:4:"___x";N;}" +object(A_DOMProcessingInstruction)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMText.php b/hphp/test/quick/builtin_extension_DOMText.php new file mode 100644 index 000000000..756686ba1 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMText.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(28) "isWhitespaceInElementContent" + [2]=> + string(9) "splitText" + [3]=> + string(5) "__get" + [4]=> + string(5) "__set" + [5]=> + string(7) "__isset" + [6]=> + string(10) "appendData" + [7]=> + string(10) "deleteData" + [8]=> + string(10) "insertData" + [9]=> + string(11) "replaceData" + [10]=> + string(13) "substringData" + [11]=> + string(11) "appendChild" + [12]=> + string(9) "cloneNode" + [13]=> + string(9) "getLineNo" + [14]=> + string(13) "hasAttributes" + [15]=> + string(13) "hasChildNodes" + [16]=> + string(12) "insertBefore" + [17]=> + string(18) "isDefaultNamespace" + [18]=> + string(10) "isSameNode" + [19]=> + string(11) "isSupported" + [20]=> + string(18) "lookupNamespaceUri" + [21]=> + string(12) "lookupPrefix" + [22]=> + string(9) "normalize" + [23]=> + string(11) "removeChild" + [24]=> + string(12) "replaceChild" + [25]=> + string(4) "c14n" + [26]=> + string(8) "c14nfile" + [27]=> + string(11) "getNodePath" +} +================ +A_DOMText +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMText)#3 (1) { + ["___x"]=> + NULL +} +string(33) "O:9:"A_DOMText":1:{s:4:"___x";N;}" +object(A_DOMText)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DOMXPath.php b/hphp/test/quick/builtin_extension_DOMXPath.php new file mode 100644 index 000000000..ead44f905 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DOMXPath.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(8) "evaluate" + [2]=> + string(5) "query" + [3]=> + string(17) "registerNamespace" + [4]=> + string(20) "registerPHPFunctions" + [5]=> + string(5) "__get" + [6]=> + string(5) "__set" + [7]=> + string(7) "__isset" +} +================ +A_DOMXPath +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DOMXPath)#3 (1) { + ["___x"]=> + NULL +} +string(35) "O:10:"A_DOMXPath":1:{s:4:"___x";N;}" +object(A_DOMXPath)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DateInterval.php b/hphp/test/quick/builtin_extension_DateInterval.php new file mode 100644 index 000000000..f1b3b4662 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DateInterval.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} +================ +A_DateInterval +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DateInterval)#3 (1) { + ["___x"]=> + NULL +} +string(39) "O:14:"A_DateInterval":1:{s:4:"___x";N;}" +object(A_DateInterval)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DateTime.php b/hphp/test/quick/builtin_extension_DateTime.php new file mode 100644 index 000000000..111ed6f54 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DateTime.php @@ -0,0 +1,27 @@ +___x++; + } +} +test("DateTime"); + +function main() { + echo "================\n"; + + $y = new A_DateTime("2012-06-23T11:00:00"); + $y->___y = 73; + $y2 = clone $y; + $y2->___y++; + $y2->modify("+3 days"); + + var_dump($y); + var_dump($y->format('Y-m-d')); + var_dump($y2); + var_dump($y2->format('Y-m-d')); +} +main(); diff --git a/hphp/test/quick/builtin_extension_DateTime.php.expectf b/hphp/test/quick/builtin_extension_DateTime.php.expectf new file mode 100644 index 000000000..c0dc2d3a0 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DateTime.php.expectf @@ -0,0 +1,68 @@ +DateTime +object(DateTime)#1 (0) { +} +string(19) "O:8:"DateTime":0:{}" +object(DateTime)#2 (0) { +} +array(16) { + [0]=> + string(3) "add" + [1]=> + string(11) "__construct" + [2]=> + string(16) "createFromFormat" + [3]=> + string(4) "diff" + [4]=> + string(6) "format" + [5]=> + string(13) "getLastErrors" + [6]=> + string(9) "getOffset" + [7]=> + string(12) "getTimestamp" + [8]=> + string(11) "getTimezone" + [9]=> + string(6) "modify" + [10]=> + string(7) "setDate" + [11]=> + string(10) "setISODate" + [12]=> + string(7) "setTime" + [13]=> + string(12) "setTimestamp" + [14]=> + string(11) "setTimezone" + [15]=> + string(3) "sub" +} +================ +A_DateTime +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DateTime)#3 (1) { + ["___x"]=> + NULL +} +string(35) "O:10:"A_DateTime":1:{s:4:"___x";N;}" +object(A_DateTime)#4 (1) { + ["___x"]=> + NULL +} +array(6) { + [0]=> + string(7) "__clone" + [1]=> + string(11) "__construct" + [2]=> + string(5) "__get" + [3]=> + string(5) "__set" + [4]=> + string(20) "createFromDateString" + [5]=> + string(6) "format" +} +================ +HipHop Fatal error: timelib too old is not implemented yet. in %s on line 16 diff --git a/hphp/test/quick/builtin_extension_DateTimeZone.php b/hphp/test/quick/builtin_extension_DateTimeZone.php new file mode 100644 index 000000000..6f6c63589 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DateTimeZone.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(11) "getLocation" + [2]=> + string(7) "getName" + [3]=> + string(9) "getOffset" + [4]=> + string(14) "getTransitions" + [5]=> + string(17) "listAbbreviations" + [6]=> + string(15) "listIdentifiers" +} +================ +A_DateTimeZone +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DateTimeZone)#3 (1) { + ["___x"]=> + NULL +} +string(39) "O:14:"A_DateTimeZone":1:{s:4:"___x";N;}" +object(A_DateTimeZone)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DebuggerClient.php b/hphp/test/quick/builtin_extension_DebuggerClient.php new file mode 100644 index 000000000..3e68a7528 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DebuggerClient.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(8) "getState" + [2]=> + string(4) "init" + [3]=> + string(10) "processCmd" +} +================ +A_DebuggerClient +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DebuggerClient)#3 (1) { + ["___x"]=> + NULL +} +string(41) "O:16:"A_DebuggerClient":1:{s:4:"___x";N;}" +object(A_DebuggerClient)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_DebuggerProxyCmdUser.php b/hphp/test/quick/builtin_extension_DebuggerProxyCmdUser.php new file mode 100644 index 000000000..c69ec42b9 --- /dev/null +++ b/hphp/test/quick/builtin_extension_DebuggerProxyCmdUser.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "isLocal" + [2]=> + string(4) "send" +} +================ +A_DebuggerProxyCmdUser +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_DebuggerProxyCmdUser)#3 (1) { + ["___x"]=> + NULL +} +string(47) "O:22:"A_DebuggerProxyCmdUser":1:{s:4:"___x";N;}" +object(A_DebuggerProxyCmdUser)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_EncodingDetector.php b/hphp/test/quick/builtin_extension_EncodingDetector.php new file mode 100644 index 000000000..d6483aa09 --- /dev/null +++ b/hphp/test/quick/builtin_extension_EncodingDetector.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "setText" + [2]=> + string(19) "setDeclaredEncoding" + [3]=> + string(6) "detect" + [4]=> + string(9) "detectAll" +} +================ +A_EncodingDetector +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_EncodingDetector)#3 (1) { + ["___x"]=> + NULL +} +string(43) "O:18:"A_EncodingDetector":1:{s:4:"___x";N;}" +object(A_EncodingDetector)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_EncodingMatch.php b/hphp/test/quick/builtin_extension_EncodingMatch.php new file mode 100644 index 000000000..847d8dd07 --- /dev/null +++ b/hphp/test/quick/builtin_extension_EncodingMatch.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "isValid" + [2]=> + string(11) "getEncoding" + [3]=> + string(13) "getConfidence" + [4]=> + string(11) "getLanguage" + [5]=> + string(7) "getUTF8" +} +================ +A_EncodingMatch +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_EncodingMatch)#3 (1) { + ["___x"]=> + NULL +} +string(40) "O:15:"A_EncodingMatch":1:{s:4:"___x";N;}" +object(A_EncodingMatch)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_ImageSprite.php b/hphp/test/quick/builtin_extension_ImageSprite.php new file mode 100644 index 000000000..1d0effbd8 --- /dev/null +++ b/hphp/test/quick/builtin_extension_ImageSprite.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "addFile" + [2]=> + string(9) "addString" + [3]=> + string(6) "addUrl" + [4]=> + string(5) "clear" + [5]=> + string(8) "loadDims" + [6]=> + string(10) "loadImages" + [7]=> + string(6) "output" + [8]=> + string(3) "css" + [9]=> + string(9) "getErrors" + [10]=> + string(7) "mapping" + [11]=> + string(10) "__destruct" +} +================ +A_ImageSprite +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_ImageSprite)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_ImageSprite":1:{s:4:"___x";N;}" +object(A_ImageSprite)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_LibXMLError.php b/hphp/test/quick/builtin_extension_LibXMLError.php new file mode 100644 index 000000000..2bab64ff8 --- /dev/null +++ b/hphp/test/quick/builtin_extension_LibXMLError.php @@ -0,0 +1,8 @@ + + string(11) "__construct" +} +================ +A_LibXMLError +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_LibXMLError)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_LibXMLError":1:{s:4:"___x";N;}" +object(A_LibXMLError)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_Locale.php b/hphp/test/quick/builtin_extension_Locale.php new file mode 100644 index 000000000..23d2e15ef --- /dev/null +++ b/hphp/test/quick/builtin_extension_Locale.php @@ -0,0 +1,8 @@ + + string(11) "__construct" +} +================ +A_Locale +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_Locale)#3 (1) { + ["___x"]=> + NULL +} +string(32) "O:8:"A_Locale":1:{s:4:"___x";N;}" +object(A_Locale)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_Memcache.php b/hphp/test/quick/builtin_extension_Memcache.php new file mode 100644 index 000000000..6e779081a --- /dev/null +++ b/hphp/test/quick/builtin_extension_Memcache.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "connect" + [2]=> + string(8) "pconnect" + [3]=> + string(3) "add" + [4]=> + string(3) "set" + [5]=> + string(7) "replace" + [6]=> + string(3) "get" + [7]=> + string(6) "delete" + [8]=> + string(9) "increment" + [9]=> + string(9) "decrement" + [10]=> + string(10) "getversion" + [11]=> + string(5) "flush" + [12]=> + string(12) "setoptimeout" + [13]=> + string(5) "close" + [14]=> + string(15) "getserverstatus" + [15]=> + string(20) "setcompressthreshold" + [16]=> + string(8) "getstats" + [17]=> + string(16) "getextendedstats" + [18]=> + string(15) "setserverparams" + [19]=> + string(9) "addserver" + [20]=> + string(10) "__destruct" +} +================ +A_Memcache +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_Memcache)#3 (1) { + ["___x"]=> + NULL +} +string(35) "O:10:"A_Memcache":1:{s:4:"___x";N;}" +object(A_Memcache)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_Memcached.php b/hphp/test/quick/builtin_extension_Memcached.php new file mode 100644 index 000000000..e5a6d104e --- /dev/null +++ b/hphp/test/quick/builtin_extension_Memcached.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(3) "add" + [2]=> + string(8) "addByKey" + [3]=> + string(9) "addServer" + [4]=> + string(10) "addServers" + [5]=> + string(6) "append" + [6]=> + string(11) "appendByKey" + [7]=> + string(3) "cas" + [8]=> + string(8) "casByKey" + [9]=> + string(9) "decrement" + [10]=> + string(6) "delete" + [11]=> + string(11) "deleteByKey" + [12]=> + string(5) "fetch" + [13]=> + string(8) "fetchAll" + [14]=> + string(5) "flush" + [15]=> + string(3) "get" + [16]=> + string(8) "getByKey" + [17]=> + string(10) "getDelayed" + [18]=> + string(15) "getDelayedByKey" + [19]=> + string(8) "getMulti" + [20]=> + string(13) "getMultiByKey" + [21]=> + string(9) "getOption" + [22]=> + string(13) "getResultCode" + [23]=> + string(16) "getResultMessage" + [24]=> + string(14) "getServerByKey" + [25]=> + string(13) "getServerList" + [26]=> + string(8) "getStats" + [27]=> + string(10) "getVersion" + [28]=> + string(9) "increment" + [29]=> + string(7) "prepend" + [30]=> + string(12) "prependByKey" + [31]=> + string(7) "replace" + [32]=> + string(12) "replaceByKey" + [33]=> + string(3) "set" + [34]=> + string(8) "setByKey" + [35]=> + string(8) "setMulti" + [36]=> + string(13) "setMultiByKey" + [37]=> + string(9) "setOption" +} +================ +A_Memcached +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_Memcached)#3 (1) { + ["___x"]=> + NULL +} +string(36) "O:11:"A_Memcached":1:{s:4:"___x";N;}" +object(A_Memcached)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_Normalizer.php b/hphp/test/quick/builtin_extension_Normalizer.php new file mode 100644 index 000000000..e768315f9 --- /dev/null +++ b/hphp/test/quick/builtin_extension_Normalizer.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(12) "isnormalized" + [2]=> + string(9) "normalize" +} +================ +A_Normalizer +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_Normalizer)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_Normalizer":1:{s:4:"___x";N;}" +object(A_Normalizer)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SQLite3.php b/hphp/test/quick/builtin_extension_SQLite3.php new file mode 100644 index 000000000..5aa950807 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SQLite3.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(4) "open" + [2]=> + string(11) "busytimeout" + [3]=> + string(5) "close" + [4]=> + string(4) "exec" + [5]=> + string(7) "version" + [6]=> + string(15) "lastinsertrowid" + [7]=> + string(13) "lasterrorcode" + [8]=> + string(12) "lasterrormsg" + [9]=> + string(13) "loadextension" + [10]=> + string(7) "changes" + [11]=> + string(12) "escapestring" + [12]=> + string(7) "prepare" + [13]=> + string(5) "query" + [14]=> + string(11) "querysingle" + [15]=> + string(14) "createfunction" + [16]=> + string(15) "createaggregate" + [17]=> + string(8) "openblob" +} +================ +A_SQLite3 +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SQLite3)#3 (1) { + ["___x"]=> + NULL +} +string(33) "O:9:"A_SQLite3":1:{s:4:"___x";N;}" +object(A_SQLite3)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SQLite3Result.php b/hphp/test/quick/builtin_extension_SQLite3Result.php new file mode 100644 index 000000000..644c9f5bd --- /dev/null +++ b/hphp/test/quick/builtin_extension_SQLite3Result.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "numcolumns" + [2]=> + string(10) "columnname" + [3]=> + string(10) "columntype" + [4]=> + string(10) "fetcharray" + [5]=> + string(5) "reset" + [6]=> + string(8) "finalize" +} +================ +A_SQLite3Result +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SQLite3Result)#3 (1) { + ["___x"]=> + NULL +} +string(40) "O:15:"A_SQLite3Result":1:{s:4:"___x";N;}" +object(A_SQLite3Result)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SQLite3Stmt.php b/hphp/test/quick/builtin_extension_SQLite3Stmt.php new file mode 100644 index 000000000..a6e216834 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SQLite3Stmt.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "paramcount" + [2]=> + string(5) "close" + [3]=> + string(5) "reset" + [4]=> + string(5) "clear" + [5]=> + string(9) "bindparam" + [6]=> + string(9) "bindvalue" + [7]=> + string(7) "execute" +} +================ +A_SQLite3Stmt +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SQLite3Stmt)#3 (1) { + ["___x"]=> + NULL +} +string(38) "O:13:"A_SQLite3Stmt":1:{s:4:"___x";N;}" +object(A_SQLite3Stmt)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SimpleXMLElement.php b/hphp/test/quick/builtin_extension_SimpleXMLElement.php new file mode 100644 index 000000000..ba122066d --- /dev/null +++ b/hphp/test/quick/builtin_extension_SimpleXMLElement.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(12) "offsetExists" + [2]=> + string(9) "offsetGet" + [3]=> + string(9) "offsetSet" + [4]=> + string(11) "offsetUnset" + [5]=> + string(11) "getIterator" + [6]=> + string(5) "count" + [7]=> + string(5) "xpath" + [8]=> + string(22) "registerXPathNamespace" + [9]=> + string(5) "asXML" + [10]=> + string(13) "getNamespaces" + [11]=> + string(16) "getDocNamespaces" + [12]=> + string(8) "children" + [13]=> + string(7) "getName" + [14]=> + string(10) "attributes" + [15]=> + string(8) "addChild" + [16]=> + string(12) "addAttribute" + [17]=> + string(10) "__toString" + [18]=> + string(5) "__get" + [19]=> + string(5) "__set" + [20]=> + string(7) "__isset" + [21]=> + string(7) "__unset" +} +================ +A_SimpleXMLElement +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SimpleXMLElement)#3 (1) { + ["___x"]=> + NULL +} +string(43) "O:18:"A_SimpleXMLElement":1:{s:4:"___x";N;}" +object(A_SimpleXMLElement)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SimpleXMLElementIterator.php b/hphp/test/quick/builtin_extension_SimpleXMLElementIterator.php new file mode 100644 index 000000000..27778459e --- /dev/null +++ b/hphp/test/quick/builtin_extension_SimpleXMLElementIterator.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(7) "current" + [2]=> + string(3) "key" + [3]=> + string(4) "next" + [4]=> + string(6) "rewind" + [5]=> + string(5) "valid" +} +================ +A_SimpleXMLElementIterator +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SimpleXMLElementIterator)#3 (1) { + ["___x"]=> + NULL +} +string(51) "O:26:"A_SimpleXMLElementIterator":1:{s:4:"___x";N;}" +object(A_SimpleXMLElementIterator)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SoapClient.php b/hphp/test/quick/builtin_extension_SoapClient.php new file mode 100644 index 000000000..de2e36148 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SoapClient.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(6) "__call" + [2]=> + string(10) "__soapcall" + [3]=> + string(16) "__getlastrequest" + [4]=> + string(17) "__getlastresponse" + [5]=> + string(23) "__getlastrequestheaders" + [6]=> + string(24) "__getlastresponseheaders" + [7]=> + string(14) "__getfunctions" + [8]=> + string(10) "__gettypes" + [9]=> + string(11) "__dorequest" + [10]=> + string(11) "__setcookie" + [11]=> + string(13) "__setlocation" + [12]=> + string(16) "__setsoapheaders" +} +================ +A_SoapClient +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SoapClient)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_SoapClient":1:{s:4:"___x";N;}" +object(A_SoapClient)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SoapHeader.php b/hphp/test/quick/builtin_extension_SoapHeader.php new file mode 100644 index 000000000..778aca125 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SoapHeader.php @@ -0,0 +1,8 @@ + + string(11) "__construct" +} +================ +A_SoapHeader +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SoapHeader)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_SoapHeader":1:{s:4:"___x";N;}" +object(A_SoapHeader)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SoapParam.php b/hphp/test/quick/builtin_extension_SoapParam.php new file mode 100644 index 000000000..d114330cd --- /dev/null +++ b/hphp/test/quick/builtin_extension_SoapParam.php @@ -0,0 +1,8 @@ + + string(11) "__construct" +} +================ +A_SoapParam +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SoapParam)#3 (1) { + ["___x"]=> + NULL +} +string(36) "O:11:"A_SoapParam":1:{s:4:"___x";N;}" +object(A_SoapParam)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SoapServer.php b/hphp/test/quick/builtin_extension_SoapServer.php new file mode 100644 index 000000000..3d2d8c4c2 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SoapServer.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(8) "setclass" + [2]=> + string(9) "setobject" + [3]=> + string(11) "addfunction" + [4]=> + string(12) "getfunctions" + [5]=> + string(6) "handle" + [6]=> + string(14) "setpersistence" + [7]=> + string(5) "fault" + [8]=> + string(13) "addsoapheader" +} +================ +A_SoapServer +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SoapServer)#3 (1) { + ["___x"]=> + NULL +} +string(37) "O:12:"A_SoapServer":1:{s:4:"___x";N;}" +object(A_SoapServer)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SoapVar.php b/hphp/test/quick/builtin_extension_SoapVar.php new file mode 100644 index 000000000..df24114fc --- /dev/null +++ b/hphp/test/quick/builtin_extension_SoapVar.php @@ -0,0 +1,8 @@ + + string(11) "__construct" +} +================ +A_SoapVar +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SoapVar)#3 (1) { + ["___x"]=> + NULL +} +string(33) "O:9:"A_SoapVar":1:{s:4:"___x";N;}" +object(A_SoapVar)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_SpoofChecker.php b/hphp/test/quick/builtin_extension_SpoofChecker.php new file mode 100644 index 000000000..fa6c4e910 --- /dev/null +++ b/hphp/test/quick/builtin_extension_SpoofChecker.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(12) "isSuspicious" + [2]=> + string(13) "areConfusable" + [3]=> + string(17) "setAllowedLocales" + [4]=> + string(9) "setChecks" +} +================ +A_SpoofChecker +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_SpoofChecker)#3 (1) { + ["___x"]=> + NULL +} +string(39) "O:14:"A_SpoofChecker":1:{s:4:"___x";N;}" +object(A_SpoofChecker)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_StringBuffer.php b/hphp/test/quick/builtin_extension_StringBuffer.php new file mode 100644 index 000000000..5917caae9 --- /dev/null +++ b/hphp/test/quick/builtin_extension_StringBuffer.php @@ -0,0 +1,32 @@ +foo = 123; + var_dump($x); + var_dump($x->foo); + + echo "================\n"; + + class Foo extends StringBuffer { + public $foo = 42; + public $bar = 'seven'; + } + $y = new Foo; + $y->biz = array(); + var_dump($y); + var_dump($y->foo); + var_dump($y->bar); + var_dump($y->biz); +} + +main(); diff --git a/hphp/test/quick/builtin_extension_StringBuffer.php.expectf b/hphp/test/quick/builtin_extension_StringBuffer.php.expectf new file mode 100644 index 000000000..e343e156d --- /dev/null +++ b/hphp/test/quick/builtin_extension_StringBuffer.php.expectf @@ -0,0 +1,58 @@ +StringBuffer +object(StringBuffer)#1 (0) { +} +string(24) "O:12:"StringBuffer":0:{}" +object(StringBuffer)#2 (0) { +} +array(3) { + [0]=> + string(11) "__construct" + [1]=> + string(6) "append" + [2]=> + string(6) "detach" +} +================ +A_StringBuffer +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_StringBuffer)#3 (1) { + ["___x"]=> + NULL +} +string(39) "O:14:"A_StringBuffer":1:{s:4:"___x";N;}" +object(A_StringBuffer)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} +================ +object(StringBuffer)#3 (1) { + ["foo"]=> + int(123) +} +int(123) +================ +object(Foo)#4 (3) { + ["foo"]=> + int(42) + ["bar"]=> + string(5) "seven" + ["biz"]=> + array(0) { + } +} +int(42) +string(5) "seven" +array(0) { +} diff --git a/hphp/test/quick/builtin_extension_XMLReader.php b/hphp/test/quick/builtin_extension_XMLReader.php new file mode 100644 index 000000000..79c0c6656 --- /dev/null +++ b/hphp/test/quick/builtin_extension_XMLReader.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(4) "open" + [2]=> + string(3) "XML" + [3]=> + string(5) "close" + [4]=> + string(4) "read" + [5]=> + string(4) "next" + [6]=> + string(10) "readString" + [7]=> + string(12) "readInnerXML" + [8]=> + string(12) "readOuterXML" + [9]=> + string(19) "moveToNextAttribute" + [10]=> + string(12) "getAttribute" + [11]=> + string(14) "getAttributeNo" + [12]=> + string(14) "getAttributeNs" + [13]=> + string(15) "moveToAttribute" + [14]=> + string(17) "moveToAttributeNo" + [15]=> + string(17) "moveToAttributeNs" + [16]=> + string(13) "moveToElement" + [17]=> + string(20) "moveToFirstAttribute" + [18]=> + string(7) "isValid" + [19]=> + string(6) "expand" + [20]=> + string(5) "__get" + [21]=> + string(17) "getParserProperty" + [22]=> + string(15) "lookupNamespace" + [23]=> + string(9) "setSchema" + [24]=> + string(17) "setParserProperty" + [25]=> + string(16) "setRelaxNGSchema" + [26]=> + string(22) "setRelaxNGSchemaSource" +} +================ +A_XMLReader +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_XMLReader)#3 (1) { + ["___x"]=> + NULL +} +string(36) "O:11:"A_XMLReader":1:{s:4:"___x";N;}" +object(A_XMLReader)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_XMLWriter.php b/hphp/test/quick/builtin_extension_XMLWriter.php new file mode 100644 index 000000000..4a5563ea3 --- /dev/null +++ b/hphp/test/quick/builtin_extension_XMLWriter.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "openMemory" + [2]=> + string(7) "openURI" + [3]=> + string(15) "setIndentString" + [4]=> + string(9) "setIndent" + [5]=> + string(13) "startDocument" + [6]=> + string(12) "startElement" + [7]=> + string(14) "startElementNS" + [8]=> + string(14) "writeElementNS" + [9]=> + string(12) "writeElement" + [10]=> + string(10) "endElement" + [11]=> + string(14) "fullEndElement" + [12]=> + string(16) "startAttributens" + [13]=> + string(14) "startAttribute" + [14]=> + string(16) "writeAttributeNS" + [15]=> + string(14) "writeAttribute" + [16]=> + string(12) "endAttribute" + [17]=> + string(10) "startCData" + [18]=> + string(10) "writeCData" + [19]=> + string(8) "endCData" + [20]=> + string(12) "startComment" + [21]=> + string(12) "writeComment" + [22]=> + string(10) "endComment" + [23]=> + string(11) "endDocument" + [24]=> + string(7) "startPI" + [25]=> + string(7) "writePI" + [26]=> + string(5) "endPI" + [27]=> + string(4) "text" + [28]=> + string(8) "writeRaw" + [29]=> + string(8) "startDTD" + [30]=> + string(8) "writeDTD" + [31]=> + string(15) "startDTDElement" + [32]=> + string(15) "writeDTDElement" + [33]=> + string(13) "endDTDElement" + [34]=> + string(15) "startDTDAttlist" + [35]=> + string(15) "writeDTDAttlist" + [36]=> + string(13) "endDTDAttlist" + [37]=> + string(14) "startDTDEntity" + [38]=> + string(14) "writeDTDEntity" + [39]=> + string(12) "endDTDEntity" + [40]=> + string(6) "endDTD" + [41]=> + string(5) "flush" + [42]=> + string(12) "outputMemory" +} +================ +A_XMLWriter +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_XMLWriter)#3 (1) { + ["___x"]=> + NULL +} +string(36) "O:11:"A_XMLWriter":1:{s:4:"___x";N;}" +object(A_XMLWriter)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extension_phpmcc.php b/hphp/test/quick/builtin_extension_phpmcc.php new file mode 100644 index 000000000..aa308b8ae --- /dev/null +++ b/hphp/test/quick/builtin_extension_phpmcc.php @@ -0,0 +1,8 @@ + + string(11) "__construct" + [1]=> + string(10) "__tostring" + [2]=> + string(5) "__set" + [3]=> + string(5) "__get" + [4]=> + string(5) "close" + [5]=> + string(3) "del" + [6]=> + string(15) "add_accesspoint" + [7]=> + string(18) "remove_accesspoint" + [8]=> + string(16) "get_accesspoints" + [9]=> + string(10) "get_server" + [10]=> + string(22) "add_mirror_accesspoint" + [11]=> + string(25) "remove_mirror_accesspoint" + [12]=> + string(10) "add_server" + [13]=> + string(13) "remove_server" + [14]=> + string(12) "server_flush" + [15]=> + string(14) "server_version" + [16]=> + string(15) "server_is_alive" + [17]=> + string(10) "test_proxy" + [18]=> + string(10) "add_mirror" + [19]=> + string(13) "remove_mirror" + [20]=> + string(14) "add_serverpool" + [21]=> + string(17) "add_serverpool_ex" + [22]=> + string(17) "remove_serverpool" + [23]=> + string(24) "add_accesspoint_listener" + [24]=> + string(27) "remove_accesspoint_listener" + [25]=> + string(19) "add_server_listener" + [26]=> + string(22) "remove_server_listener" + [27]=> + string(18) "add_error_listener" + [28]=> + string(21) "remove_error_listener" + [29]=> + string(17) "get_server_by_key" + [30]=> + string(8) "get_host" + [31]=> + string(21) "get_serverpool_by_key" + [32]=> + string(21) "serverpool_add_server" + [33]=> + string(24) "serverpool_remove_server" + [34]=> + string(22) "serverpool_get_servers" + [35]=> + string(41) "serverpool_get_consistent_hashing_enabled" + [36]=> + string(41) "serverpool_get_consistent_hashing_version" + [37]=> + string(9) "multi_add" + [38]=> + string(13) "multi_replace" + [39]=> + string(9) "multi_set" + [40]=> + string(15) "multi_lease_set" + [41]=> + string(3) "add" + [42]=> + string(4) "decr" + [43]=> + string(4) "incr" + [44]=> + string(6) "delete" + [45]=> + string(14) "delete_details" + [46]=> + string(3) "get" + [47]=> + string(9) "lease_get" + [48]=> + string(12) "detailed_get" + [49]=> + string(9) "get_multi" + [50]=> + string(15) "lease_get_multi" + [51]=> + string(7) "replace" + [52]=> + string(3) "set" + [53]=> + string(9) "lease_set" + [54]=> + string(5) "stats" + [55]=> + string(13) "traffic_stats" + [56]=> + string(7) "metaget" + [57]=> + string(15) "get_mcc_version" +} +================ +A_phpmcc +HipHop Warning: DateInterval::__construct() expects exactly 1 parameter, 0 given in %s on line 26 +object(A_phpmcc)#3 (1) { + ["___x"]=> + NULL +} +string(32) "O:8:"A_phpmcc":1:{s:4:"___x";N;}" +object(A_phpmcc)#4 (1) { + ["___x"]=> + NULL +} +array(5) { + [0]=> + string(11) "__construct" + [1]=> + string(5) "__get" + [2]=> + string(5) "__set" + [3]=> + string(20) "createFromDateString" + [4]=> + string(6) "format" +} diff --git a/hphp/test/quick/builtin_extensions.inc b/hphp/test/quick/builtin_extensions.inc new file mode 100644 index 000000000..58622d7fc --- /dev/null +++ b/hphp/test/quick/builtin_extensions.inc @@ -0,0 +1,42 @@ +