PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Configuration » Config » Bug #2049

static $deep in Config_Container_XML::toString() causes big indents

Details

Submitted2004-08-04 08:02 UTC
Fromstephan at wentz dot it
Assignedmansion
StatusClosed
PackageConfig
PHP Version4.3.8
OSLinux
Roadmaps(Not assigned)

Comments

[2004-08-04 08:02 UTC] stephan at wentz dot it

Description:
------------
I'm writing XML with Config, about 20 files, and I wondered that the indentation is different in all files.

Seems like the static variable $deep in Config_Container_XML::toString() isn't reset on a new instance (I checked this, everytime a new instance of Config is created...).

Reproduce code:
---------------
nothing here ;)

write 20 xml files in a row...

Expected result:
----------------
<data>
<content_str><![CDATA[test]]></content_str>
</data>

Actual result:
--------------
<data>
<content_str><![CDATA[test]]></content_str>
</data>

[2004-08-07 10:12 UTC] bmansion at mamasam dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

You can now specify whether you want CData or not through the boolean option 'useCData'.

[2004-08-07 10:14 UTC] bmansion at mamasam dot com

Oops wrong comments...
Deep is now a private property so the indent is set per instance.