ID: 12188
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Unknown/Other Function
Operating System:
PHP Version: 4.0.6
New Comment:
what is my error then ?
Previous Comments:
------------------------------------------------------------------------
[2001-07-16 16:23:10] [EMAIL PROTECTED]
This works perfectly for me. If I keep reloading that page I get:
a Object ( [a] => 1 )
a Object ( [a] => 2 )
a Object ( [a] => 3 )
a Object ( [a] => 4 )
...
- Colin
------------------------------------------------------------------------
[2001-07-16 16:03:05] [EMAIL PROTECTED]
Fatal error: The script tried to execute a method or access a property of an
incomplete object. Please ensure that the class definition stati of the object you are
trying to operate on was loaded _before_ the session was started in
/var/www/wedr0/test/para4.php on line 12
------------------------------------------------------------------------
[2001-07-16 11:37:09] [EMAIL PROTECTED]
... and the problem is ... ?
------------------------------------------------------------------------
[2001-07-16 11:19:57] [EMAIL PROTECTED]
class A {
var $a;
function add(){
$this->a++;
}
}
session_register('a');
if (!is_object($a)){
$a = new A();
}
$a->add();
print_r($a);
========================================================================================================================
Modules :
"./configure" \
"--with-iconv" \
"--with-mysql" \
"--with-apxs=/usr/local/apache/bin/apxs" \
"--with-xml" \
"--with-sablot" \
"--with-swf=/usr/local/src/dist" \
"-enable-sysvsem" \
"-enable-sysvshm" \
"-enable-trans-sid" \
"-enable-track-vars" \
"-enable-register-globals" \
"$@"
============================================================
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12188&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]