ID: 14864
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Bug Type: Reproducible crash
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.1.1
New Comment:
Quite strange, I've just copied the php.ini-dist on the php.ini I had
and now it works.
Maybe when installed 4.1.1 I've forgotten to upgrade my php.ini that was
4.0.6
Could you imagine what could have been the cause of it ?
Thanks
J
Previous Comments:
------------------------------------------------------------------------
[2002-01-04 20:36:57] [EMAIL PROTECTED]
firstly, this isn't a reproduceable crash, since the engine didn't
crash.
Secondly, the code you show here WORKS.
I suggest you look at your code again, and debug it properly.
------------------------------------------------------------------------
[2002-01-04 20:27:57] [EMAIL PROTECTED]
mispelled while restyling the code for you :-)
<?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this->wow=$Parola;
}
}
session_start();
if(!isset($wa)) {
$wa = new BinLaden("Hello Word");
session_register('wa');
print "New object<br>";
} else {
echo($wa->wow); // THIS LINE WAS MISPELLED
print "Object from session<br>";
}
?>
------------------------------------------------------------------------
[2002-01-04 20:24:37] [EMAIL PROTECTED]
FIRST OUTPUT:
New object
REFRESH BROWSER:
Fatal error: The script tried to execute a method or access a property
of an incomplete object. Please ensure that the class definition
binladen of the object you are trying to operate on was loaded _before_
the session was started in test.php on line 16
Note: The class is defined before the session start!
<?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this->wow=$Parola;
}
}
session_start();
if(!isset($wa)) {
$wa = new BinLaden("Hello Word");
session_register('wa');
print "New object<br>";
} else {
echo($wa->cazz);
print "Object from session<br>";
}
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14864&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]