note 76896 added to function.mysqli-get-host-info
| From: | pierre at pierrepaquette dot net | Date: | Sat, 04 Aug 2007 03:33:03 +0000 |
| Subject: | note 76896 added to function.mysqli-get-host-info | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129168@lists.php.net to get a copy of this message | ||
Why would it be that when I try object-oriented style, viz:
$a->host_info;
I get the following error message:
Undefined property: mysqli::$host_info
in PHP 6
whereas if I try the procedural style, viz:
mysqli_get_host_info($a);
there is no error.
I have similar error messages with quite a few functions in PHP 6, actually. Did the object-oriented
way to call them change?
Pierre
----
Server IP: 217.160.250.20
Probable Submitter: 74.15.120.161
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-get-host-info.php
Edit -- https://master.php.net/note/edit/76896
Del: integrated -- https://master.php.net/note/delete/76896/integrated
Del: useless -- https://master.php.net/note/delete/76896/useless
Del: bad code -- https://master.php.net/note/delete/76896/bad+code
Del: spam -- https://master.php.net/note/delete/76896/spam
Del: non-english -- https://master.php.net/note/delete/76896/non-english
Del: in docs -- https://master.php.net/note/delete/76896/in+docs
Del: other reasons-- https://master.php.net/note/delete/76896
Reject -- https://master.php.net/note/reject/76896
Search -- https://master.php.net/manage/user-notes.php