6.0.0-alpha14
7/2/25

[#14297] Update Css_Parser to 7.x to fix compatibility with php 7
Summary Update Css_Parser to 7.x to fix compatibility with php 7
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester math.parent (at) gmail (dot) com
Created 03/16/2016 (3395 days ago)
Due
Updated 03/29/2016 (3382 days ago)
Assigned
Resolved 03/29/2016 (3382 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/29/2016 03:19:35 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
03/29/2016 03:19:12 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit a53af2fd0286a241e7d7f3ce02c656b467436870
Author: Jan Schneider <jan@horde.org>
Date:   Tue Mar 29 17:18:16 2016 +0200

     [jan] Update to PHP-CSS-Parser 7.0.2 (Request #14297).

  framework/Css_Parser/bundle/composer.json          |    2 +-
  framework/Css_Parser/bundle/composer.lock          |   19 +++---
  .../bundle/vendor/composer/ClassLoader.php         |   34 +++++++++-
  .../Css_Parser/bundle/vendor/composer/LICENSE      |   20 ++++++
  .../bundle/vendor/composer/autoload_real.php       |    5 --
  .../bundle/vendor/composer/installed.json          |   12 ++--
  .../vendor/sabberworm/php-css-parser/.travis.yml   |    3 +
  .../vendor/sabberworm/php-css-parser/CHANGELOG.md  |   29 ++++++++-
  .../vendor/sabberworm/php-css-parser/Doxyfile      |    4 +-
  .../vendor/sabberworm/php-css-parser/README.md     |   19 +++---
  .../lib/Sabberworm/CSS/CSSList/CSSBlockList.php    |    2 +-
  .../php-css-parser/lib/Sabberworm/CSS/Parser.php   |   69 ++++++++++---------
  .../CSS/Parsing/UnexpectedTokenException.php       |    3 -
  .../lib/Sabberworm/CSS/Value/CSSString.php         |   31 +++++++++
  .../lib/Sabberworm/CSS/Value/String.php            |   31 ---------
  .../lib/Sabberworm/CSS/Value/URL.php               |    4 +-
  .../sabberworm/php-css-parser/tests/files/ie.css   |    2 +-
  framework/Css_Parser/package.xml                   |   16 +++--
  18 files changed, 189 insertions(+), 116 deletions(-)

http://github.com/horde/horde/commit/a53af2fd0286a241e7d7f3ce02c656b467436870
03/16/2016 09:50:00 PM math (dot) parent (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Update Css_Parser to 7.x to fix compatibility with php 7
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
The following error with php 7:
PHP Fatal error:  Cannot use 'String' as class name as it is reserved 
in 
/usr/share/php/Horde/Css/Parser/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/String.php on line 
5

Please update Css-Parser to version 7 which is compatible with php 7

See https://github.com/sabberworm/PHP-CSS-Parser/blob/master/CHANGELOG.md

Debian report:: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818161

NB: Commits 88bbf020d99d8547bcb512f67d22ada86c5b5b8a and 
7ce420aae7b65e0d64731d121f96e644fbdca728 are not sufficient.

Saved Queries