note 95826 added to mysqli.errno

From: Date: Sun, 24 Jan 2010 00:50:11 +0000
Subject: note 95826 added to mysqli.errno
Groups: php.notes 
Request: Send a blank email to php-notes+get-165248@lists.php.net to get a copy of this message
Please note that, for an unknow reason to me, you can't write to this var if you create a class that extends mysqli. Something like: <?php class dbase extends mysqli { public function setErrno() { $this->errno = 10; } } $db = new dbase; $db->setErrno(); echo $db->errno."\n"; exit(); ?> will return you the error: Fatal error: dbase::setErrno(): Cannot write property in script.php on line 6. ---- Server IP: 69.147.83.197 Probable Submitter: 208.113.240.35 ---- Manual Page -- http://www.php.net/manual/en/mysqli.errno.php Edit -- https://master.php.net/note/edit/95826 Del: integrated -- https://master.php.net/note/delete/95826/integrated Del: useless -- https://master.php.net/note/delete/95826/useless Del: bad code -- https://master.php.net/note/delete/95826/bad+code Del: spam -- https://master.php.net/note/delete/95826/spam Del: non-english -- https://master.php.net/note/delete/95826/non-english Del: in docs -- https://master.php.net/note/delete/95826/in+docs Del: other reasons-- https://master.php.net/note/delete/95826 Reject -- https://master.php.net/note/reject/95826 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165248) next »