MasterKaos
Programmer
Am i doing something wrong here, or is this a PHP bug?
What strikes me as particularly odd, is that the PHP error refers to the method in lowercase rather than camelCase....
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
Code:
<?php
class Foo{
public function __call($name, $arguments){
return 'foo';
}
}
class Foo_Bar extends Foo {
public function getFoo(){
return parent::getFoo(); //line 11
}
}
$foo = new Foo();
$foobar = new Foo_Bar();
echo $foo->getFoo();
echo $foobar->getFoo();
/**
* output:
* foo
* Fatal error: Call to undefined method Foo::getfoo() in /home/public_html/FooBar.php on line 11
*/
?>
What strikes me as particularly odd, is that the PHP error refers to the method in lowercase rather than camelCase....
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.