Cfpropertylist: 解包()问题

创建于 2011-05-12  ·  5评论  ·  资料来源: TECLIB/CFPropertyList

不确定你以前是否见过这个,但我在谷歌上找不到完全相同的东西。 我使用这个库和 Plist 服务器让 Drupal 与 iOS 应用程序交互。 我在发出任何 HTTP 请求时都会收到以下错误:

```unpack() [ function.unpack ]:输入x:输入不足,需要1,输入0
/path/to/CFBinaryPropertyList.php 第 467 行。


I'm using PHP 5.3.5 on an Apache server with Drupal 6. This very well could be the Plist Server modules fault. But the Error is coming from your file, so I thought I would ask you first. The plist server module can be found here: http://drupal.org/project/plist_server. Thanks for the help.
bug test

最有用的评论

好的,我对输入进行了一些额外的测试。 现在它应该对无效数据抛出异常

所有5条评论

你有一些样本输入吗?

你在使用 CFPropertyList 的最新 git checkout 吗? 如果没有,你可以试试吗?

我确实更新到了最新的 git checkout,但出现了同样的错误。 我实际上认为这是 Drupal Plist 服务器模块的问题。 它没有提供足够好的错误处理,而是将一个空字符串传递给您的 parseBinaryString 方法。 我要打开模块的问题。 谢谢您的帮助!

好吧,如果我们不拒绝处理空字符串,我们的错误处理也很差:-)

Rod,在这种情况下我们应该抛出异常,不是吗?

好的,我对输入进行了一些额外的测试。 现在它应该对无效数据抛出异常

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

kdm122 picture kdm122  ·  3评论

gingerbeardman picture gingerbeardman  ·  9评论

n8felton picture n8felton  ·  12评论

YannickGagnon picture YannickGagnon  ·  4评论

bdmu picture bdmu  ·  3评论