#6538: [Test] Wrong serialization of array with XmlHelper::serialize()
--------------------------+-------------------------------------------------
Reporter: dho | Owner:
Type: Bug | Status: closed
Priority: Medium | Milestone: 1.2.x.x
Component: Helpers | Version: 1.2 Final
Severity: Normal | Resolution: fixed
Keywords: | Php_version: PHP 5
Cake_version: rev. 8263 |
--------------------------+-------------------------------------------------
Comment (by chihchun):
The [8264] create another issue, which keeps _name_ tag in the serialized
xml string.
{{{
From 75e55ea45e84f0f32abff180412fcf7b14d10ceb Mon Sep 17 00:00:00 2001
From: Rex Tsai <[email protected]>
Date: Thu, 15 Oct 2009 15:39:04 +0800
Subject: [PATCH] clean _name_ field
---
cake/libs/xml.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cake/libs/xml.php b/cake/libs/xml.php
index be7e976..daeccfa 100644
--- a/cake/libs/xml.php
+++ b/cake/libs/xml.php
@@ -241,7 +241,7 @@ class XmlNode extends Object {
}
$n = $name;
- if (!empty($chldObjs['_name_'])) {
+ if (isset($chldObjs['_name_'])) {
$n = null;
unset($chldObjs['_name_']);
}
--
1.5.6.5
}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/6538#comment:4>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---