ID:               30615
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dmitryseliv at yahoo dot com
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Class/Object related
 Operating System: Red Hat Linux
 PHP Version:      4.3.9
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2004-10-30 00:54:42] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


------------------------------------------------------------------------

[2004-10-29 20:05:41] dmitryseliv at yahoo dot com

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 this bug report at http://bugs.php.net/?id=30615&edit=1

Reply via email to