PHP SOAP wsdl Fatal Error & Xdebug

问题描述 投票:3回答:3

find "stack"" (is was " 40000 size of stack reserve " )

increase the size typing editbin SOAP-ERROR: 解析WSDL:......"。

我读到这个错误是无法捕捉的,因为Xdebug是开着的,解决方案是禁用它,以便能够捕捉到这个错误,....

但我不工作!错误显示与橙色和红色的颜色,你有一个想法吗?

(我使用的是wamp的最后一个版本,我不知道如何检查我是否选择了64或32bits,但它是apache 2.2.22,php 5.3.13)

<?php
xdebug_disable();
try {
  $sc = new SoapClient("some-wrong.wsdl", array('exceptions' => true));
} catch (Exception $e) {
  echo 'Error Caught :-)';
}
?>

谢谢您的帮助! :)

我想补充的是:

 - Warning: SoapClient::SoapClient -> "failed to open stream ..."
 - Warning: SoapClient::SoapClient -> "failed to load external entity ..."
 - Fatal error: SOAP-ERROR: Parsing WSDL -> "Couldn't load from ..."

有时我有两个警告和一个错误

有时,只是致命的错误

我在new SoapClient(......)这行之后放置了一个echo,当出现未捕捉到的错误时,echo不显示了

我得补充一下,我调用SoapClient时,'trace' => 1,'exceptions' => 1。而我在apache的错误日志中看到了这一点(**

[Thu Jan 31 16:16:02 2013] [error] [client 127.0.0.1] PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://******?wsdl' : Start tag expected, '<' not found\n in D:\\Programmes\\wamp\\www\\******.php on line 144, referer: http://localhost/******.php
[Thu Jan 31 16:16:04 2013] [error] [client 127.0.0.1] PHP Warning:  ||| faultcode: WSDL ||| faultstring: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://******?wsdl' : Start tag expected, '<' not found\n ||| in D:\\******.php on line 201, referer: http://localhost/******.php
[Thu Jan 31 16:16:04 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to a member function __getLastRequestHeaders() on a non-object in D:\\Programmes\\wamp\\www\\******.php on line 204, referer: http://localhost/******.php

惯用)

我编辑了我的第一条留言,因为我是新会员,不能在8小时前回复自己的留言。

  • 所以今天早上,我改变了apache的默认堆栈大小,因为apache在apache错误日志中只有这一行:[notice]父:子进程退出状态255 -- 重新启动。
  • 我已经安装了visual basic 2012(评估版;)。
  • 使用visual basic命令控制台(start > Micrososft Visual Studio 2012 > Visual studio tools)。检查父系输入 "cd ***my_path_containing_apache_bin_directory*"。*
  • \bin dumpbin all httpd.exe stack:1048576 httpd.exe
  • 不要忘了在httpd.exe文件上把administrator放在右边+退出WANP !!! (我失去了一个上午,因为这个!,editbin返回一个LINK错误!)

-> 这是奇怪的,因为在这样做后,我有WSDL uncaught错误,但由于几个小时,我没有这种错误,可能是它只是代理列表,我使用能够正确连接,...?

php soap wsdl xdebug fatal-error
3个回答
0
投票

SOAP扩展做了一些奇怪的事情,并且覆盖了一个内部的PHP错误处理程序。这与Xdebug的错误覆盖机制有一点冲突。但请附上完整的错误信息,我也许可以从那里更新我的答案。


0
投票

这里是Xdebug我得到的详细错误信息(**隐藏))

( ! ) Warning: SoapClient::SoapClient(http://****?wsdl) [<a href='soapclient.soapclient'>soapclient.soapclient</a>]: failed to open stream: Une tentative de connexion a �chou� car le parti connect� n�a pas r�pondu convenablement au-del� d�une certaine dur�e ou une connexion �tablie a �chou� car l�h�te de connexion n�a pas r�pondu. in D:\Programmes\wamp\www\****.php on line 146
Call Stack
#   Time    Memory  Function    Location
1   0.0013  497672  {main}( )   ..\script gepir3-1.php:0
2   0.6920  695896  SoapClient->SoapClient( )   ..\script gepir3-1.php:146

( ! ) Warning: SoapClient::SoapClient() [<a href='soapclient.soapclient'>soapclient.soapclient</a>]: I/O warning : failed to load external entity &quot;http://****?wsdl&quot; in D:\Programmes\wamp\www\****.php on line 146
Call Stack
#   Time    Memory  Function    Location
1   0.0013  497672  {main}( )   ..\script gepir3-1.php:0
2   0.6920  695896  SoapClient->SoapClient( )   ..\script gepir3-1.php:146

( ! ) Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://*****.asmx?wsdl' : failed to load external entity "http://****asmx?wsdl" in D:\Programmes\wamp\www\****.php on line 146
Call Stack
#   Time    Memory  Function    Location
1   0.0013  497672  {main}( )   ..\script gepir3-1.php:0
2   0.6920  695896  SoapClient->SoapClient( )   ..\script gepir3-1.php:146

我不明白为什么我的php.ini中这个参数被关闭了(自动启动也没有了)。

; XDEBUG Extension

zend_extension = "D:/Programmes/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "D:/Programmes/wamp/tmp"

0
投票

也许有点晚了,但Opcache模块也会干扰XDebug。https:/xdebug.orgdocscompat)。

它必须被禁用才能与NetbeansIDE一起工作。

© www.soinside.com 2019 - 2024. All rights reserved.