note 78291 deleted from ref.mysqli by felipe

From: Date: Mon, 10 Dec 2007 17:21:18 +0000
Subject: note 78291 deleted from ref.mysqli by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133185@lists.php.net to get a copy of this message
Note Submitter: kenashkov at gmail dot com ---- It seems that the mysqli class is overloaded. get_class_vars(mysqli) returns nothing. __set() and __get() are overloaded, but __isset() it not!!! This means that the code: <? $mysqli_object = new mysqli(); if(isset($mysqli_object->client_info)) { print $mysqli_object->client_info; } ?> will not print anything. The workaround is: <? if($mysqli_object->client_info!==null) { print $mysqli_object->client_info; } ?>

« previous php.notes (#133185) next »