Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "GoogleSitemapGeneratorPage" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /in/php_61d2d2b74e0ec1.78365953 on line 7
$str = 'a:1:{i:0;O:26:"GoogleSitemapGeneratorPage":5:{s:4:"_url";s:28:"24tr354g345g345fg342g43g534g";s:9:"_priority";d:0;s:11:"_changeFreq";s:6:"always";s:8:"_lastMod";i:0;s:7:"_postID";i:0;}}';
$str = unserialize($str);
array_push($str, $str[0]);
array_push($str, $str[0]);
var_dump($str[1]->url);
object(__PHP_Incomplete_Class)#1 (6) {
["__PHP_Incomplete_Class_Name"]=>
string(26) "GoogleSitemapGeneratorPage"
["_url"]=>
string(28) "24tr354g345g345fg342g43g534g"
["_priority"]=>
float(0)
["_changeFreq"]=>
string(6) "always"
["_lastMod"]=>
int(0)
["_postID"]=>
int(0)
}
Не могу изменить значение объекта/массива