Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Steps to reproduce:
- Install Rasmus' php7 vagrant machine, see http://akrabat.com/building-and-testing-php7
- Then clone drush and drupal.
- Set a password for mysql.
- Use drush to install drupal
vagrant@php7dev:~$ makephp 70
vagrant@php7dev:~/drupal$ php -v
PHP 7.0.0-dev (cli) (built: Aug 7 2015 13:56:53) (DEBUG)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
vagrant@php7dev:~/drupal$ drush si --db-url=mysql://root:pass@localhost/drupal
You are about to DROP all tables in your 'drupal' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a while. Consider [ok]
using the --notify global option.
Error: Cannot access protected property Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::$storage in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->getSchemaFromStorageDefinition() (line 212 of /home/vagrant/drupal/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).
Drush command terminated abnormally due to an unrecoverable [error]
error.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Beta phase evaluation
Issue category | Bug because this introduces a PHP7 regression. |
---|---|
Issue priority | Major because PHP7 is not released yet, but we'd like the installation to run on it |
Comment | File | Size | Author |
---|---|---|---|
#4 | assert_protected_property.txt | 386 bytes | neclimdul |
Comments
Comment #2
heddnComment #3
stefan.r CreditAttribution: stefan.r commentedComment #4
neclimdultest case
Comment #5
neclimdulhttps://bugs.php.net/bug.php?id=70208
Comment #6
heddnI can reproduce the error using the above test case in my php7 build.
Comment #7
bwoebi CreditAttribution: bwoebi as a volunteer commentedFixed via http://git.php.net/?p=php-src.git;a=commitdiff;h=b7aac1f5f2d1f072fa52b0b...
Comment #8
neclimdulConfirmed, rebuilt php locally and the test passes. Thanks bwoebi!