So I am using PHPExcel (http://phpexcel.codeplex.com/) to import a excel sheet. everything works fine on my development system, BUT it doesn t quite work on the live system.
Hence I debugged and looked what could be wrong. I got to a point where I found that a method obviously returned NULL, where it should have returned an object. I looked into that method, and var_dump()
ed the var which was returned in the method. the var was NOT NULL
PSEUDO CODE:
class Bar()
{
function methodInAClass()
{
$test = new Foobar;
[...]
/* $test was an object here with a lot of data (var_dump()
* took around 100.000 lines in an editor) */
var_dump($test);
return $test;
}
}
$bar =& new Bar();
$test2 = $bar->methodInAClass(); //$test2 is NULL here
What am I doing wrong? Is this a problem that comes from the php.ini?