#30626 [NEW]: Function problems with php 4.3.9 upgrade!!!
From: dmitryseliv at yahoo dot com Operating system: Red Hat Linux PHP version: 4.3.9 PHP Bug Type: *Extensibility Functions Bug description: Function problems with php 4.3.9 upgrade!!! Description: There is some functions that stops working after upgrade to php 4.3.9. I'm getting error message that - Fatal error: Call to undefined function: onselect() Reproduce code: --- There is some magic there. Example: I already have function, let's say function A1(); in another function: function funcCall() { $this->A1(); //Call to the function A1() } This works fine, but if I create any other function (even with empty body) and will call it instead of A1 I will get this error. Locally it works fine and I haven't changed this staff before and after the PHP move. Expected result: See above... Actual result: -- See above... -- Edit bug report at http://bugs.php.net/?id=30626&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30626&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30626&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30626&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30626&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30626&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30626&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30626&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30626&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30626&r=support Expected behavior: http://bugs.php.net/fix.php?id=30626&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30626&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30626&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30626&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30626&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30626&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30626&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30626&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30626&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30626&r=mysqlcfg
#30625 [NEW]: Function problems with php 4.3.9 upgrade!!!
From: dmitryseliv at yahoo dot com Operating system: Red Hat Linux PHP version: 4.3.9 PHP Bug Type: *Extensibility Functions Bug description: Function problems with php 4.3.9 upgrade!!! Description: There is some functions that stops working after upgrade to php 4.3.9. I'm getting error message that - Fatal error: Call to undefined function: onselect() Reproduce code: --- There is some magic there. Example: I already have function, let's say function A1(); in another function: function funcCall() { $this->A1(); //Call to the function A1() } This works fine, but if I create any other function (even with empty body) and will call it instead of A1 I will get this error. Locally it works fine and I haven't changed this staff before and after the PHP move. -- Edit bug report at http://bugs.php.net/?id=30625&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30625&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30625&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30625&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30625&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30625&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30625&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30625&r=support Expected behavior: http://bugs.php.net/fix.php?id=30625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30625&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30625&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30625&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30625&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30625&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30625&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30625&r=mysqlcfg
#30615 [NEW]: Fatal error: Call to undefined function: onselect()
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