NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Missing Object Details


Joined: 03 Nov 2007
Posts: 42
Reply with quote
When I create certain objects - for example:

$mysqli = new mysqli('localhost', 'root', '', 'mydatabase');

then if I examine $mysqli in "Immediate" debug in PHPEd, I see

: object(mysqli) =
affected_rows: undefined = NULL
client_info: undefined = NULL
etc.
server_info: undefined = NULL

All fields are NULL.

But if I ask for specific fields, I can see the contents, and the contents are no longer NULL:
$mysqli->server_info
: string = 5.1.41-community-log

Why do I have to ask for specific fields? Most objects just show them.

And is there a way to see them without specifying them, as in
object(mysqli)

var_dump seems to work sometimes, and not others
View user's profileFind all posts by computergeniusSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 7897
Reply with quote
Try serialize($mysqli) and you'll see exactly the same NULLs. So debugger did not fool you -- it was content of the object properties.
I'll check why var_dump works differently.
As of $mysqli->server_info expression, I'll check that too.
Next time please submit such reports using Contact Us form, please.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Contact Form


Joined: 03 Nov 2007
Posts: 42
Reply with quote
I presume that you are asking me to use the contact form if I am reporting a bug.

I thought it was something stupid that I was doing wrong!

_________________
PC
View user's profileFind all posts by computergeniusSend private messageVisit poster's website
Missing Object Details
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic