|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-06 10:30 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 19:00:01 2025 UTC |
Description: ------------ when extending class there is no access to parent::error, parent::errno access to functions (query, set_charset, ...)works Reproduce code: --------------- class dbMYSQL extends mysqli { ... function __construct( parent::__construct($args....); echo parent::errno; echo parent::error; } ... } Expected result: ---------------- 0 '' or some error and error message when error occurs Actual result: -------------- Fatal error: Undefined class constant 'errno' Fatal error: Undefined class constant 'error'