Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2015 at 23:45 UTC
Updated:
5 Mar 2015 at 00:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
miro_dietikerMy latest head with latest drush si, PHP 5.4.30 failed with:
PHP Fatal error: Cannot use Drupal\Component\Utility\Html as Html because the name is already in use in /usr/local/var/www/d8.dev/www/core/lib/Drupal/Core/Render/Element/Link.php on line 11
Works again after applying the patch.
Comment #3
tim.plunkettI don't understand how this is a bug, but either way, let's just do this.
Credit should also go to neclimdul for spending a lot of time on this in IRC
Comment #4
nlisgo commentedPatch #3 works for me.
Comment #5
nlisgo commentedRTBC+
Comment #6
tim.plunkettThis is the bug:
http://3v4l.org/PCmhc
I would expect this to work, especially if each namespace were split across three files.
Comment #7
cilefen commentedThis works fine for me.
Comment #8
tim.plunkettircmaxell confirmed this is a bug in all versions of PHP.
http://lxr.php.net/xref/PHP_5_5/Zend/zend_compile.c#7039
I'm guessing the testbots use opcache, because that's the only way they'd pass:
ircmaxell said he'd file a PHP7 bug report tomorrow.
In the interest of getting this committed, I'm taking #5 as an RTBC.
Added suggested commit message to summary.
Comment #9
xjmSimilar issue: #2420421: HEAD BROKEN: Fatal error: Cannot use Drupal\Component\Utility\Xss as Xss because the name is already in use in /var/lib/drupaltestbot/sites/default/files/checkout/core/modules/views/src/Plugin/views/field/Field.php on line 11
Comment #10
tim.plunkettThe patch was reverted.