#30615 [NEW]: Fatal error: Call to undefined function: onselect()
| From: | dmitryseliv at yahoo dot com | Date: | Fri, 29 Oct 2004 18:05:47 +0000 |
| Subject: | #30615 [NEW]: Fatal error: Call to undefined function: onselect() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68475@lists.php.net to get a copy of this message | ||
From: dmitryseliv at yahoo dot com
Operating system: Red Hat Linux
PHP version: 4.3.9
PHP Bug Type: Class/Object related
Bug description: Fatal error: Call to undefined function: onselect()
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()
--
Edit bug report at http://bugs.php.net/?id=30615&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30615&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30615&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30615&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30615&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30615&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30615&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30615&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30615&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30615&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30615&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30615&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30615&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30615&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30615&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30615&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30615&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30615&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30615&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30615&r=mysqlcfg