So I use PHPExcel ( http://phpexcel.codeplex.com/ ) to import an excel sheet. everything works fine in my development system, BUT it doesn't quite work on a live system.
So I debugged and looked at what might be wrong. I got to the point where I found that the method obviously returns NULL, where it should have returned the object. I looked at this method and var_dump()edited the var that was returned in the method. var was not NULL
PSEUDO CODE:
class Bar()
{
function methodInAClass()
{
$test = new Foobar;
[...]
var_dump($test);
return $test;
}
}
$bar =& new Bar();
$test2 = $bar->methodInAClass();
What am I doing wrong? Is this a problem that comes from php.ini?
source
share