PHP Ming 函数未按预期工作(swfshape、setline())
我现在在 PHP 中使用在 Flash 中创建图形的函数时遇到问题。我们最近将 PHP 从 5.2.0 升级到 5.3.0,为我们预期的其他服务器升级和更改做好准备。当我们这样做时,我们用来制作这些图形的一些代码似乎被破坏了。创建对象的代码使用 swfshape::setline() 将线的宽度设置为 0,以隐藏它并且不显示黑色边框。在 5.2 中,这很好。然而,现在我们已经升级了,我们正在让每个对象都带有边框。我们已经阅读了 Ming 和 PHP 文档(它们说的是同样的事情),它说我们可以继续将 0 传递给宽度函数以使线条消失。但情况似乎并非如此。
有人遇到过这个问题吗?有谁知道我们可以做些什么来解决这个问题?谢谢。
I'm having a problem right now with a function we're using in PHP to create graphics in flash. We recently upgraded PHP from 5.2.0 to 5.3.0 to get ready for other server upgrades and changes we're expecting. When we did this, some of the code we use to make these graphics seemed to break. The code for creating an objects was using swfshape::setline() to set the line's width to 0, as to hide it and not show a black border. In 5.2, this was fine. Now that we've upgraded, however, we're getting every object to come up with a border. We have read over Ming and PHP documentation (which says the same thing) and it says that we can continue to pass 0 to the function for width to make the line disappear. That doesn't seem to be the case, though.
Has anyone had trouble with this? Does anyone know what we can do to fix this? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是我们使用的 ming 库的固有问题。我们必须手动进入库的代码并更改有关 PHP 如何处理对象创建的几行。不要认为这不再是问题,因为我们不再遇到问题。
This seems to be an inherent problem in the ming library that we were using. We had to manually go into the code of the library and change a few lines about how PHP was handling object creation. Don't think it's a problem anymore, as we're no longer getting the problem.