Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new CFNumber(0) = format error #31

Closed
YannickGagnon opened this issue Feb 22, 2015 · 4 comments
Closed

new CFNumber(0) = format error #31

YannickGagnon opened this issue Feb 22, 2015 · 4 comments
Assignees
Labels
Projects
Milestone

Comments

@YannickGagnon
Copy link

The following sample code:

$plist = new CFPropertyList\CFPropertyList();
$plist->add($dict = new \CFPropertyList\CFDictionary());
$dict->add('Index', new CFPropertyList\CFNumber(0));

echo $plist->toXML(true);

output this plist:

Index

It appears that having makes the plist invalid, at least, xCode complains that the isn't in the correct format.

Any idea?

Thanks,

@ckruse
Copy link
Collaborator

ckruse commented Feb 22, 2015

Hm, this is a bug in the XML serializer. Let me have a look...

@ckruse
Copy link
Collaborator

ckruse commented Feb 22, 2015

Can you retry with latest HEAD? I can't reproduce the problem.

@YannickGagnon
Copy link
Author

Indeed, it works from packagist: "rodneyrehm/plist": "dev-master"

Latest release (v2.0) is getting old(2012) don't you think? ; )

If dev-master is stable, could you tag a new release to packagist, please ;)

Thanks,

@ckruse
Copy link
Collaborator

ckruse commented Feb 23, 2015

Yes, totally should've done that before, just forgot that. My misstake.

@ckruse ckruse closed this as completed Feb 23, 2015
@ajsb85 ajsb85 added the bug label Apr 18, 2018
@ajsb85 ajsb85 added this to Done in Package Apr 18, 2018
@ajsb85 ajsb85 added this to the 2.0 milestone Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Package
  
Done
Development

No branches or pull requests

5 participants