Bug 1096697 - Please update to 1.0.0bet1
Summary: Please update to 1.0.0bet1
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php-PHPParser
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Shawn Iwinski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-12 09:18 UTC by Remi Collet
Modified: 2014-05-16 16:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-16 16:23:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Remi Collet 2014-05-12 09:18:50 UTC
Description of problem:

PHPCompatInfo new version 3.1 need (from composer.json)
        "nikic/php-parser": "1.0.0beta1",

Version-Release number of selected component (if applicable):
 	0.9.4-1

According to https://github.com/nikic/PHP-Parser/releases introduce namespace, but provide class aliases for compatibility.

phpcompatinfo is the next package to drop pear support... again lot of work pending to have a working package :(

Comment 1 Remi Collet 2014-05-12 14:58:46 UTC
Change proposal:

https://github.com/remicollet/remirepo/commit/b3639f277c21703d63bd7bf2c6c7f1c7d054e942

I don't see anything which require this library in our repository, so can't test.

But trivial test, using the old autoloader still work with this update:

php -r '
   require "PHPParser/Autoloader.php";
   PHPParser_Autoloader::register();
   new PHPParser_Lexer();
'

Or the new one:
php -r '
   require "PhpParser/Autoloader.php";
   PhpParser\Autoloader::register();
   new PhpParser\Lexer();
'

P.S. my first thought was to link old to new tree, but this will not work, as the needed class_alias are defined in the Autoloaer, so this single file should be enough (so an external autoloader for the old library will not work).


Note You need to log in before you can comment on or make changes to this bug.