Development

#4025 ([PATCH] sfYaml::dump misunderstands hash as array.)

You must first sign up to be able to contribute.

Ticket #4025 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

[PATCH] sfYaml::dump misunderstands hash as array.

Reported by: hnw Assigned to: fabien
Priority: minor Milestone: 1.1.1
Component: other Version: 1.1.0
Keywords: sfYaml dump Cc:
Qualification: Design decision

Description

sfYaml::dump has problem in dealing with array which has numeric keys.

$data = array(1=>1,0=>2);
echo sfYaml::dump($data);

returns as follows:

- 1
- 2

However, I think it is bug. This should returns as follows(same as syck_dump()):

1: 1
0: 2

I attach patch.

Attachments

sfYamlDumper.patch (0.5 kB) - added by hnw on 07/17/08 12:55:45.

Change History

07/17/08 12:55:45 changed by hnw

  • attachment sfYamlDumper.patch added.

07/29/08 22:58:08 changed by nicolas

  • qualification changed from Unreviewed to Design decision.

fabien, to you is this the expected behavior?

08/01/08 15:08:08 changed by nicolas

  • status changed from new to closed.
  • resolution set to fixed.

(In [10574]) [1.1] fixed sfYaml::dump misunderstands hash as array (closes #4025)

08/01/08 15:08:43 changed by nicolas

(In [10575]) [1.2] backport of r10574 - fixed sfYaml::dump misunderstands hash as array (refs #4025)