0

Hey

When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up:

Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29

How can I make the PHP page understand true and false? Or at least recieve true or and false, if neccesary convert them to 1 and 0 and understand that? No, I cant change the web service to send 1 or 0, sorry.

3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by pritaeas
0

What is the definition for stdClass ? Perhaps you need to use a property of this class

Never in my life have I seen "stdClass" (meaning it is not in my code and I did not write it) so It has to be a base class of Java.

0

Googling it a bit, it seems "stdClass" is something from PHP....

0

Maybe you should try type-casting it into "bool" or an "int". As stdClass is rather a dynamic Object. I think it would do some good.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.