I just upgraded from PHP3 to the latest PHP4.
Im running it as a module for thttpd
For some reason, my class variables are being returned blank. And this is the same code that ran wonderfully on PHP3 last week.
I have an array of objects, which is populated by a function call.
Here is an example of what I am doing... PLEASE HELP!
//FILE - class.php
class Obj {
var $name;
function Obj{
$name = "not set";
}
}
//FILE - lib.php
include("class.php");
function fillObjArray(&$toBeFilled){
$tobeFilled[0] = new Obj;
$tobeFilled[0]->name ="test";
//FILE - main.php>
include("lib.php");
fillObjArray($ObjArray);
//this output is empty... WHY?
echo $objArray[0]->name;
Any help would be greatly appreciated,
andre @ performance technologies