类自动扩展? [英] class automatically extended ?

查看:85
本文介绍了类自动扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在nusoap.php的末尾有这个代码:

in end of nusoap.php io have this code:

展开 | 选择 | Wrap | 行号

推荐答案

嘿。


我不太了解NuSOAP,但PHP确实拥有它自己的 soapclient 类,看来您的代码检查是否加载了包含该类的扩展名,如果不加载,则假定 soapclient 类名为 nusoap_client 类。


警告是显然,起诉是因为nusoap_client类 - 它在第7行扩展你的代码就像soap_client一样 - 正在第9行使用,但是代码无法为它提供任何参数,而且它似乎至少需要一个。 - 请注意,这只是一个警告。代码可以在没有修复的情况下继续。如果您关闭错误消息,它将被静音。 - 但是,通常最好不要忽略警告。
Hey.

I don''t know NuSOAP very well, but PHP does have it''s own soapclient class, and it appears that your code checks whether or not the extension containing that class is loaded or not, and if it isn''t, assumes the soapclient class name for it''s nusoap_client class.

The warning is issued because, apparently, the nusoap_client class - which is extended your code on line #7 as soap_client - is being used on line #9, but the code fails to provide it with any parameters, and it seems it is expecting at least one. -- Note that this is just a warning. The code can go on without it being fixed. If you turn of the error messages it will be silenced. - However, it is usually best not to ignore warnings.


问题是没有加载soap扩展并且else中的命令不会执行...但是soap_client类将加载!

i必须得到一个未定义的类错误....但是类存在!
Problem is that soap extension is not loaded and commands in else will not execute... but soap_client class will load!
i must get an undefined class error.... but class exist!


如果该类存在,则它被定义在某处,如果你得到未加载,从上面的剪断印刷,它不会发生在那里。 - 它必须发生在代码中的其他地方。也许NuSOAP创建了别名。之前,它何时创建了类?
If the class exists it is being defined somewhere, and if you are getting "not loaded" printed from the snipped above, it''s not happening there. - It must be happening somewhere else in the code. Perhaps NuSOAP creates the "alias" earlier, when it creates the class itself?


这篇关于类自动扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆