Patch Fix-59860 for yaml Bug #59860
Patch version 2012-01-17 23:04 UTC
Return to Bug #59860 |
Download this patch
Patch Revisions:
Developer: lucas@stumbleupon.com
From 741ebb2ea382ad61278e5fb7983c12288eafa137 Mon Sep 17 00:00:00 2001
From: Lucas Marshall <lucas@stumbleupon.com>
Date: Fri, 13 Jan 2012 12:43:52 -0800
Subject: [PATCH] An implcit tag is still a tag
Change-Id: I6c5ceab5d8aeb86d4d9e1b0a8126cc5c7a4c18b3
Reviewed-on: https://review.stumble.net/7282
Tested-by: Lucas Marshall <lucas@stumbleupon.com>
Reviewed-by: Anoakie Turner <aturner@stumbleupon.com>
---
parse.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/parse.c b/parse.c
index 84eda2d..653c3b9 100644
--- a/parse.c
+++ b/parse.c
@@ -596,13 +596,17 @@ apply_filter(zval **zpp, yaml_event_t event, HashTable *callbacks TSRMLS_DC)
/* detect event type and get tag */
switch (event.type) {
case YAML_SEQUENCE_START_EVENT:
- if (!event.data.sequence_start.implicit) {
+ if (event.data.sequence_start.implicit) {
+ tag = YAML_SEQ_TAG;
+ } else {
tag = (char *) event.data.sequence_start.tag;
}
break;
case YAML_MAPPING_START_EVENT:
- if (!event.data.mapping_start.implicit) {
+ if (event.data.sequence_start.implicit) {
+ tag = YAML_MAP_TAG;
+ } else {
tag = (char *) event.data.mapping_start.tag;
}
break;
--
1.7.5
|