Re: [PHP4BETA] class serialize/unserialize implementation.
| From: | Boris Erdmann | Date: | Wed, 15 Sep 1999 20:38:02 +0000 |
| Subject: | Re: [PHP4BETA] class serialize/unserialize implementation. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4496@lists.php.net to get a copy of this message | ||
"Thies C. Arntzen" wrote:
>
> please checkout the lastest cvs and do some tests (maybe compare them to
> php3?) - it'll be more than obvious then!
>
> regards,
> tc
>
well this script displays "5" on the first load and "2" on all
subsequent reloads where it should be counting up to 6,7,8 and
so on:
--------
<?php
session_start(); session_register("myobj");
class myclass {
var $slot = 1;
}
if ( !isset($myobj)) {
$myobj = new myclass();
$myobj->slot=4;
}
?>
<html>
<head>
</head>
<body>
<%=++$myobj->slot%>
</body>
</html>
--------
Hint: If i put a "#" in front of line 6, the script works within the
desired semantics.
Boris