I have created a class with a static method, and call that method from
another script.
class MyClass {
static public function GetExceptions($param1, $param2) {
// do stuff, return array
}
}
when I call the method:
$var = MyClass::GetExceptions($number, $number2);
On my development machine (running Windows 7, IIS, PHP 5.3.3) this
works perfectly, exactly how I would expect it to.
On my test machine (running Windows Server 2003, IIS, PHP 5.3.3) I get
an error of "Fatal error: Call to undefined method". If I look at the
code, the method clearly exists.
I have checked a fresh copy out of SVN on both boxes, and get the same
results. It works on dev, not on test. The code is exactly the same.
So I figured it has to be a difference in how PHP is configured, so I
diffed the php.ini files between the two servers, changed the test box
to match my dev box, and still get the same error.
Anyone have any ideas on why this doesn't work on my test box?
Aaron Throckmorton
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net