soap bug - ingoring @ error suppression (was Re: [DB_DataObject])
| From: | Alan Knowles | Date: | Tue, 27 Jan 2004 16:02:41 +0000 |
| Subject: | soap bug - ingoring @ error suppression (was Re: [DB_DataObject]) | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10389@lists.php.net to get a copy of this message | ||
Alan Knowles wrote:
One reason maybe: - SOAP is writing it's own error handler and not ignoring 'zero' errors (which are suppressed by the @)..Yes - this is what is happening - I just looked up line 1764
not sure which version you are using - what is the method/code around line 1764? duh.. 1.5.2 :) - read the email :)Regarsd Alan
Regards Alan Martin Hesse wrote:I am using DB_DataObject 1.5.2. It works perfectly in a "standard" cgi-environment, but when used within PEAR::SOAP I get tons of error messages about undefined indexes: SOAP-ENV:Server Undefined index: table_test_tbl PHP <faultcode xsi:type="xsd:QName">SOAP-ENV:Server</faultcode> <faultstring xsi:type="xsd:string">Undefined index: table_test_tbl</faultstring> <faultactor xsi:type="xsd:anyURI">PHP</faultactor> I found out, that the error occurs when $this->_database is FALSE at line 1763 in DB/DataObject.php and the script tries to get a DSN based on a table_ rule in line 1764. As I don't use that feature I commented out line 1764. From then on, the logs showed me that the database thing somehow works, but strangely enough the SOAPServer won't return since then and my client says: "Timed out read from localhost" My feeling is that I am missing on something really big here. What is the reson php starts complaining about missing indices in arrays? It never did before. Thanks, Martin