Minor tweaks to the IDL
While rewriting gen_ext_hhvm in C++ I discovered these little anomalies: the "return" field of a function has to exist, and has to be a dictionary. I'm also removing the specific class name of hphp_create_continuation as per the discussion, and removing the support for parsing types like that.
Esse commit está contido em:
@@ -256,11 +256,6 @@ function EndClass() {
|
||||
}
|
||||
|
||||
function idl_parse_type($t) {
|
||||
// Named object types
|
||||
if (!strncmp($t, 'Object:', 7)) {
|
||||
return substr($t, 7);
|
||||
}
|
||||
|
||||
if (defined($t) && ($v = constant($t)) &&
|
||||
is_integer($v) && ($v > 0) && ($v < TypeMask)) {
|
||||
return $v;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{
|
||||
"name": "hphp_create_continuation",
|
||||
"return": {
|
||||
"type": "Object:Continuation"
|
||||
"type": "Object"
|
||||
},
|
||||
"args": [
|
||||
{
|
||||
|
||||
@@ -1054,6 +1054,9 @@
|
||||
"HasDocComment",
|
||||
"HipHopSpecific"
|
||||
],
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
{
|
||||
"name": "filename",
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
{
|
||||
"name": "toEncoding",
|
||||
@@ -64,6 +67,9 @@
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
{
|
||||
"name": "encoding",
|
||||
@@ -91,6 +97,9 @@
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
{
|
||||
"name": "encoding",
|
||||
|
||||
@@ -893,7 +893,9 @@
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": null,
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
]
|
||||
},
|
||||
@@ -903,7 +905,9 @@
|
||||
"flags": [
|
||||
"HasDocComment"
|
||||
],
|
||||
"return": null,
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
]
|
||||
},
|
||||
|
||||
@@ -473,6 +473,9 @@
|
||||
"HipHopSpecific",
|
||||
"NoInjection"
|
||||
],
|
||||
"return": {
|
||||
"type": null
|
||||
},
|
||||
"args": [
|
||||
]
|
||||
}
|
||||
|
||||
@@ -13623,7 +13623,7 @@ const char *g_class_map[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
(const char *)0x10006040, "hphp_create_continuation", "", (const char*)0, (const char*)0,
|
||||
"/**\n * ( excerpt from\n * http://php.net/manual/en/function.hphp-create-continuation.php )\n *\n *\n * @clsname string\n * @funcname string\n * @origFuncName\n * string\n * @args map\n *\n * @return Continuation\n *\n */",
|
||||
"/**\n * ( excerpt from\n * http://php.net/manual/en/function.hphp-create-continuation.php )\n *\n *\n * @clsname string\n * @funcname string\n * @origFuncName\n * string\n * @args map\n *\n * @return object\n */",
|
||||
(const char *)0x40 /* KindOfObject */, (const char *)0x2000, "clsname", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,
|
||||
(const char *)0x2000, "funcname", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,
|
||||
(const char *)0x2000, "origFuncName", "", (const char *)0x14 /* KindOfString */, "", (const char *)0, "", (const char *)0, NULL,
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário