Derrell Lipman wrote:
>
>
>> Hi,
>>
>> this one is for Derrell and Andreas, the authors of qx.io.remote.Rpc.
>>
>
> Heh. Don't blame us for that mess! :-)
>
No worries. This is just a test. ;-)
Derrell Lipman wrote:
>
>> <phpfatalerror>
>> Fatal error: Call to undefined function adsfadasf() in
>>
>> /Users/bibliograph/Sites/Bibliograph/RpcPhp/trunk/services/server/ServiceIntrospection.php
>> on line 167
>> </phpfatalerror>
>>
>
> PHP doesn't return errors with such a tab as <phpfatalerror> in any
> version
> of PHP I've ever used. Since there's a tag, but it's not a valid HTML tag,
> it must be XML, right? :-) Actually, qx.io.remote.transport.XmlHttp only
> takes the response to be XML if the response type is application/xml. Do
> you, or does PHP, ever specify such a thing?
>
You're right - this is handmade using
ini_set('error_prepend_string', '<phpfatalerror>');
ini_set('error_append_string', '</phpfatalerror>');
I am trying to catch fatal errors to avoid messing up the json response.
PHP's fatal errors are almost impossible to catch - the
ini_set('error_prepend_string' ... stuff is the only way I have found that
works. Using "/* ... */" instead worked well in PHP4, but no longer in PHP5.
That's why I tried the XML way and it is an ok workaround but clearly not
ideal. It will issue a warning ("Received id (undefined) does not match
requested id ") but will no clutter the error console with trancebacks etc.
Derrell Lipman wrote:
>
> Likely what needs changing is the fact that the response is XML. Rpc
> doesn't
> know anything about XML and will have great trouble dealing with it.
>
Ok, I know more. Not much we can do, but it is possible to work with that.
Thanks,
Christian
--
View this message in context:
http://n2.nabble.com/Interesting-rpc-error-tp3928879p3929068.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel