note 116667 deleted from mysqli.set-charset by salathe
| From: | salathe@php.net | Date: | Thu, 19 Feb 2015 16:34:19 +0000 |
| Subject: | note 116667 deleted from mysqli.set-charset by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-201748@lists.php.net to get a copy of this message | ||
Note Submitter: qeremy () gmail
----
Says: Returns TRUE on success or FALSE on failure.
Really?
So, if you trying something like this, think again just because $result === NULL.
<?php
$result = @mysqli_set_charset(AN INVALID LINK, "utf8");
if ($result === false) {
throw new Exception("...");
}
var_dump($result); // NULL
?>
$ php -v "PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) "