Edit report at https://bugs.php.net/bug.php?id=70187&edit=1
ID: 70187
User updated by: pagescene at gmail dot com
Reported by: pagescene at gmail dot com
Summary: [Introduced in PHP 7] Notice: unserialize():
Unexpected end of serialized data
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 7
PHP Version: 7.0.0beta2
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I did submit an issue to Views maintainers but no response yet. The strange thing is that PHP's
5.6 serialize() function manages to serialize the views object in a manner that allows successful
unserialization, but the same function fails under PHP 7.
Previous Comments:
------------------------------------------------------------------------
[2015-08-03 12:57:07] cmb@php.net
Have you consulted a Drupal support channel? It is possible that
Drupal 7 is not supposed to be compatible with PHP 7.
------------------------------------------------------------------------
[2015-08-03 07:22:44] pagescene at gmail dot com
Description:
------------
Conf: Drupal site (version 7) latest release. Inside Drupal's Views display pages I get:
Notice: unserialize(): Unexpected end of serialized data in ctools_object_cache_get() (line 48 of
C:\WWW\int\sites\all\modules\ctools\includes\object-cache.inc).
Notice: unserialize(): Error at offset 15910 of 74156 bytes in ctools_object_cache_get() (line 48 of
C:\WWW\int\sites\all\modules\ctools\includes\object-cache.inc).
While editing Drupal's views displays, cTools stores modifications inside Drupal's cache
tables before they are saved permanently inside the DB. This functionality is also affected:
settings are never saved to the DB and they revert always to the ones set up previously under PHP
5.6.
Related issue: trying to add a new page to an existing view returns unauthorized message (e.g. you
are not authorized to access this page).
All this was working very fine under PHP 5.6 but got introduced in PHP 7.
Any idea what might be going on here? Thanks.
Test script:
---------------
http://www.drupalcontrib.org/api/drupal/contributions%21ctools%21includes%21object-cache.inc/function/ctools_object_cache_get/7
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70187&edit=1