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.
Since PHP version 5.0, clone is a reserved keyword and cannot be invoked as a function.
This issue was discovered with a PHP Compatibility scan to PHP 5.6.
http://php.net/manual/en/reserved.keywords.php
https://github.com/wimg/PHPCompatibility
Comment | File | Size | Author |
---|---|---|---|
#2 | backup_migrate-clone-reserved-keyword-2633304-1.patch | 1 KB | adamelleston |
Comments
Comment #2
adamelleston CreditAttribution: adamelleston as a volunteer commentedComment #3
rocketeerbkw CreditAttribution: rocketeerbkw commentedThis isn't technically incorrect, as it works like
include
orrequire
but it can be misleading if you confuse it for a function invocation, so I'm for the change.Patch still applies cleanly to 7.x-3.x-dev.
Comment #4
joelpittetAlso for this, but yes minor.
Comment #6
ronan CreditAttribution: ronan commented