|
|
| |
1. Notice: Undefined variable |
|
Reply |
|
|
 afi | 2008-10-02 07:08:13 |
Notice: Undefined variable: this in C:\Server\local-pythagor.ru\www\pax\core\classes\Object.class.php on line 37
Starting PAX ...
Saying Hello World! from PAX
Please enjoy the program
Stopping PAX ...
(C) Marius Zadara, 2008 |
| |
2. Re: Notice: Undefined variable |
|
Reply |
|
|
 Marius Zadara | 2008-10-02 18:06:51 - In reply to message 1 from afi |
Hello!
I don't think the error that you get (althought is an notive) comes from PAX, please check your script before calling PAX.
I even modified the class Test (from file test.node.php) so that it calls the function $this->destroy() that instead it calls the same function (destroy()) from the Object class. This is the function from where it seems that you get the error, but I can't get it, therefore I believe is not from PAX.
As said before, please recheck your code before calling PAX, or please send me the code from where you call PAX so I can debug it.
Thanks. |
| |
3. Re: Notice: Undefined variable |
|
Reply |
|
|
 afi | 2008-10-03 06:34:46 - In reply to message 2 from Marius Zadara |
Hello!
I did not modify script. This error occurs when i starting of your script.
The reason: static call of the method Environment::destroy():
Call stack:
-> call Environment:: destroy ();
-> call Object::destroy ()
-> Error! Variable 'this' is not exists because there is no one instance of Environment
public function destroy()
{
// get the current class name
$class = get_class($this);
...
...
}
BTW, method destroy() is not static.
Please, insert error_reporting(E_ALL); to beginning of index.php. I think you will see this notice :) |
| |
4. Re: Notice: Undefined variable |
|
Reply |
|
|
 Marius Zadara | 2008-10-05 05:09:42 - In reply to message 3 from afi |
Hello!
Thank you for your contribution, I've updated the code.
You can redownload only the Object.class.php. |
|