[Bug 261942] www/drush-php80 drupal7 drupal9

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Feb 2022 06:29:37 UTC

            Bug ID: 261942
           Summary: www/drush-php80 drupal7 drupal9
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: richard2891@gmail.com

drush-php80 8.3.3 is using each() function which was removed from php80.

So when ever I try to run this command "drush pm-update drupal -y" on a drupal7
install I get the following error.

WD php: Error: Call to undefined function each() in _drush_backend_proc_open()
(line 360 of phar:///usr/local/bin/drush.phar/includes/backend.inc).

This issue is was fixed in 8.4.1.

drush-php80 8.3.3 is also using update_fix_compatibility() function that was
removed with drupal9.

So when I try to run this command "drush updatedb" on a drupal9 install I get
the following error.

Error: Call to undefined function update_fix_compatibility() in update_main()
(line 136 of phar:///usr/local/bin/drush.phar/commands/core/drupal/update.inc)

both issues were fix by using composer to install a newer version of drush
using this command "composer require drush/drush:8.x -W" install drush 8.4.10.
and fixed both of my issues.

You are receiving this mail because:
You are the assignee for the bug.