|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-30 00:54 UTC] derick@php.net
[2004-11-07 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Hi! We just upgraded php to 4.3.9 and i'm getting this error message right now. Code looks fine. So my guess it's some how related to the upgraded. Reproduce code: --------------- function select() { $this->onSelect(); $objDB = createDataBase(); $sOrderBy = getValue("order_by", $GLOBALS["Variables"]); if ($sOrderBy != "") { $vtrFieldArray = getValue($sOrderBy, $this->m_vtrFields); if (gettype($vtrFieldArray) == 'array') { $sOrderBy = " order by ".($vtrFieldArray[1])." asc"; } else { $sOrderBy = ""; } } $sRequest = "select "; for ($nCount = 0; $nCount < count($this->m_vtrFields); ++$nCount) { if ($nCount != 0) { $sRequest .= " , "; } $sRequest .= $this->m_vtrFields[$nCount][1]; } $sRequest .= " from "; for ($nCount = 0; $nCount < count($this->m_vtrTables); ++$nCount) { if ($nCount != 0) { $sRequest .= " , "; } $sRequest .= $this->m_vtrTables[$nCount]; } if (($this->m_nID != "") || ($this->m_sWhereClause != "")) { $sRequest .= " where "; } if ($this->m_nID != "") { $sRequest .= " ".$this->m_vtrTables[0].".id=".$this->m_nID; if ($this->m_sWhereClause != "") { $sRequest .= " and "; } } if ($this->m_sGroupClause != "") { $sRequest .= $this->m_sGroupClause; } $sRequest .= $this->m_sWhereClause; $sRequest .= $sOrderBy; $this->m_vtrResultTable = $objDB->execute($sRequest); } Actual result: -------------- Fatal error: Call to undefined function: onselect()