Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.2

Bug #4493 forgotten $this->
Submitted: 2005-05-31 23:08 UTC
From: dennis at discworld dot ping dot de Assigned: jmcastagnetto
Status: Closed Package: Science_Chemistry
PHP Version: 4.3.10 OS: Debian GNU/Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-05-31 23:08 UTC] dennis at discworld dot ping dot de
Description: ------------ Science_Chemistry-1.1.0 Fatal error: Call to undefined function: inittable() in /usr/share/php/Science/Chemistry/Periodic_Table.php on line 51 or Fatal error: Call to undefined function: inittable() in /usr/share/php/Science/Chemistry/Periodic_Table.php on line 68 Reproduce code: --------------- Bug Reproduce Code: <?php require_once 'Science/Chemistry.php'; $table = new Science_Chemistry_Periodic_Table(); $sym = 'H'; $table->getElement($sym); ?> Patch: diff /usr/share/php/Science/Chemistry/Periodic_Table.php Repaired_Periodic_Table.php 51c51 < initTable(); --- > $this->initTable(); 68c68 < initTable(); --- > $this->initTable(); Actual result: -------------- Fatal error: Call to undefined function: inittable() in /usr/share/php/Science/Chemistry/Periodic_Table.php on line 51 or Fatal error: Call to undefined function: inittable() in /usr/share/php/Science/Chemistry/Periodic_Table.php on line 68

Comments

 [2005-07-26 18:56 UTC] jmcastagnetto
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.