php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30615 Fatal error: Call to undefined function: onselect()
Submitted: 2004-10-29 20:05 UTC Modified: 2004-11-07 01:00 UTC
Votes:4
Avg. Score:3.5 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: dmitryseliv at yahoo dot com Assigned:
Status: No Feedback Package: Class/Object related
PHP Version: 4.3.9 OS: Red Hat Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dmitryseliv at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-10-29 20:05 UTC] 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() 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-30 00:54 UTC] derick@php.net
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-11-07 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC