note 95441 added to pdostatement.fetchobject
| From: | thomasdecaux at ebuildy dot com | Date: | Sun, 03 Jan 2010 21:37:07 +0000 |
| Subject: | note 95441 added to pdostatement.fetchobject | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164573@lists.php.net to get a copy of this message | ||
Its worth noting that the settings are done before the call to the constructor:
class NewsVO
{
var $id;
var $title;
var $content;
var $date;
public function __construct()
{
die($this->title);
}
}
Print the title instead of nothing! I am not sure its a bug, because its very usefull to do some
post-treatment on the VO properties...
So, question is, can we use it as a special PDO feature or its a pure bug?
----
Server IP: 69.147.83.197
Probable Submitter: 93.1.160.222
----
Manual Page -- http://www.php.net/manual/en/pdostatement.fetchobject.php
Edit -- https://master.php.net/note/edit/95441
Del: integrated -- https://master.php.net/note/delete/95441/integrated
Del: useless -- https://master.php.net/note/delete/95441/useless
Del: bad code -- https://master.php.net/note/delete/95441/bad+code
Del: spam -- https://master.php.net/note/delete/95441/spam
Del: non-english -- https://master.php.net/note/delete/95441/non-english
Del: in docs -- https://master.php.net/note/delete/95441/in+docs
Del: other reasons-- https://master.php.net/note/delete/95441
Reject -- https://master.php.net/note/reject/95441
Search -- https://master.php.net/manage/user-notes.php