cvs: /php4 ChangeLog /php4/ext/standard var.c

From: Date: Wed, 15 Sep 1999 15:03:06 +0000
Subject: cvs: /php4 ChangeLog /php4/ext/standard var.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4484@lists.php.net to get a copy of this message
thies Wed Sep 15 11:03:06 1999 EDT Modified files: /php4 ChangeLog /php4/ext/standard var.c Log: when unserializing classes: if the class is not known the standard class (no methods) will be used. if the class is known - the created object will functional again! Index: php4/ChangeLog diff -u php4/ChangeLog:1.107 php4/ChangeLog:1.108 --- php4/ChangeLog:1.107 Wed Sep 15 07:42:27 1999 +++ php4/ChangeLog Wed Sep 15 11:03:05 1999 @@ -2,8 +2,8 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ?? 1999, Version 4.0 Beta 3 -- Made serialize/unserialize work on classes & speedups. CAUTION: when - unserializing the class to be unserialized needs to be known! (Thies) +- Made serialize/unserialize work on classes. If the class is known at + unserialize() time, you'll get back a fully working object! (Thies) - Reworked preg_* functions according to the new PCRE API, which also made them behave much more like Perl ones (Andrey) - Made it possible to specify external location of PCRE library (Andrey) Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.24 php4/ext/standard/var.c:1.25 --- php4/ext/standard/var.c:1.24 Wed Sep 15 09:37:11 1999 +++ php4/ext/standard/var.c Wed Sep 15 11:03:06 1999 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: var.c,v 1.24 1999/09/15 13:37:11 andrey Exp $ */ +/* $Id: var.c,v 1.25 1999/09/15 15:03:06 thies Exp $ */ /* {{{ includes @@ -372,7 +372,8 @@ (*p) += i; if (zend_hash_find(EG(class_table), class_name, i+1, (void **) &ce)==FAILURE) { - php_error(E_WARNING, "Cannot instanciate non-existant class: %s", class_name); + php_error(E_NOTICE, "Unserializing non-existant class: %s! No methods will be available!", class_name); + ce = &zend_standard_class_def; } efree(class_name);

« previous php.version4 (#4484) next »