note 107280 added to mysqli-result.fetch-object
| From: | Alex | Date: | Fri, 27 Jan 2012 04:36:34 +0000 |
| Subject: | note 107280 added to mysqli-result.fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185759@lists.php.net to get a copy of this message | ||
Make sure to specify the full namespace for the "string $class_name" parameter and not a
partial one, as it won't find it. For example:
<?php
namespace Root(backslash)FirstLevel
{
public static function Test($result)
{
return mysqli_fetch_object($result, 'SecondLevel\\MyClass');
}
}
?>
... will not work but this will:
<?php
namespace Root(backslash)FirstLevel
{
public static function Test($result)
{
return mysqli_fetch_object($result, 'Root\\FirstLevel\\SecondLevel\\MyClass');
}
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 24.200.18.16
----
Manual Page -- http://www.php.net/manual/en/mysqli-result.fetch-object.php
Edit -- https://master.php.net/note/edit/107280
Del: integrated -- https://master.php.net/note/delete/107280/integrated
Del: useless -- https://master.php.net/note/delete/107280/useless
Del: bad code -- https://master.php.net/note/delete/107280/bad+code
Del: spam -- https://master.php.net/note/delete/107280/spam
Del: non-english -- https://master.php.net/note/delete/107280/non-english
Del: in docs -- https://master.php.net/note/delete/107280/in+docs
Del: other reasons-- https://master.php.net/note/delete/107280
Reject -- https://master.php.net/note/reject/107280
Search -- https://master.php.net/manage/user-notes.php