Re: #49535 [Opn->Asn]: mysqli::get_client_info/get_client_version are properties
| From: | Anthony Bedford | Date: | Mon, 28 Sep 2009 13:28:57 +0000 |
| Subject: | Re: #49535 [Opn->Asn]: mysqli::get_client_info/get_client_version are properties | ||
| References: | 1 2 3 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969380939@lists.php.net to get a copy of this message | ||
On 28 Sep 2009, at 14:21, Kalle Sommer Nielsen wrote:
Hi Anthony 2009/9/28 Anthony Bedford <Anthony.Bedford@sun.com>:That explains it! Many thanks, TonyObviously, something is not right (the properties don't seem to have the correct info), or I am doing something wrong (more likely!). Can anyone spot the problem?Thats because the properties is called 'client_info' and 'client_version', not prefixed with get as its procedural equal:
C:\php\six\Release_TS>php -r "$mysqli = new mysqli('localhost', 'root', ''); var_dump($mysqli->client_info, $mysqli->client_version);" unicode(48) "mysqlnd 5.0.5-dev - 081106 - $Revision: 288379 $" int(50005) --regrads, Kalle Sommer Nielsen kalle@php.net