Bug 1096697

Summary: Please update to 1.0.0bet1
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: php-PHPParserAssignee: Shawn Iwinski <shawn>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: pahan, shawn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-16 16:23:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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).