PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Science » Science_Chemistry » Bug #4493

forgotten $this->

Details

Submitted2005-05-31 23:08 UTC
Fromdennis at discworld dot ping dot de
Assignedjmcastagnetto
StatusClosed
PackageScience_Chemistry
PHP Version4.3.10
OSDebian GNU/Linux
Roadmaps(Not assigned)

Comments

[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