8000 [BUG][DependencyInjection] Syntax error in var/cache/dev/appDevDebugContainer.php · Issue #19201 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[BUG][DependencyInjection] Syntax error in var/cache/dev/appDevDebugContainer.php #19201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
entepe85 opened this issue Jun 28, 2016 · 16 comments
Closed

Comments

@entepe85
Copy link

Upon clearing the cache a fatal error is thrown:

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING) in [...]var/cache/dev/appDevDebugProjectContainer.php:7161

Here's the corresponding line:
class VichUploaderBundleHandlerUploadHandler_000000003557d388000000006581de10da75941a549785cf26d7df71050c90e4 extends \\Vich\UploaderBundle\Handler\UploadHandler implements \\ProxyManager\Proxy\VirtualProxyInterface {
It's obvious that the error is caused by the duplicate backslashes.

#9815 seems to be related, but #9816 does not fix this behaviour since it started after the most recent composer update.

@xabbuh
Copy link
Member
xabbuh commented Jun 28, 2016

Can you please provide some steps on how to reproduce your issue and/or fork the Symfony Standard Edition and modify it in a way that makes it possible to reproduce this?

@entepe85
Copy link
Author
entepe85 commented Jun 28, 2016

Only thing I knowingly did was to update the composer packages in the project.
Here's the package list from that projects composer.json:

"require": {
        "php": ">=5.5.9",
        "symfony/symfony": "^3.0",
        "doctrine/orm": "^2.5",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/doctrine-cache-bundle": "^1.2",
        "symfony/swiftmailer-bundle": "^2.3",
        "symfony/monolog-bundle": "^2.8",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "^2.0",
        "kimk/page-bundle": "@dev",
        "friendsofsymfony/user-bundle": "@dev",
        "vich/uploader-bundle": "^1.0",
        "guzzlehttp/guzzle": "^6.2",
        "eightpoints/guzzle-bundle": "^4.5",
        "gedmo/doctrine-extensions": "dev-master",
        "cbschuld/browser.php": "@dev"
    },

EDIT Forgot to mention: I tried updating to Symfony ^3.0 but to no avail.

@xabbuh
Copy link
Member
xabbuh commented Jun 28, 2016

Can you please show the output of composer show?

@entepe85
Copy link
Author
entepe85 commented Jun 28, 2016

I put it into a Pastebin here.

EDIT: Forgot to mention that I reverted back to the old versions through a Git reset and only updated kimk\pagebundle.

@lemorragia
Copy link
lemorragia commented Jun 28, 2016

i can confirm this issue too, tried to update this morning and got the same error. I'm working on php7, and symfony 2.8.x-dev...i already tried to downgrade symfony/symfony, but apparently the problem is not there...here is my composer show

EDIT:
i could also add that the problem has probably been added in the last 24h...luckily i had an update just yesterday and with the same dependancies everything was fine...

@wannaporn
Copy link

I have got this problem too.

@RaphaelSalique
Copy link

Same problem too

@AntoineNseir
Copy link

Same problem here.

@realityking
Copy link
Contributor

#9815 is ancient. I did however do a similar change in in #18682.

I won't have time to investigate this before Thursday. As a side note, we should expand the tests for the DIC to include namespaces classes.

@realityking
Copy link
Contributor

Just saw that the problem seems to occur in 2.8.x. That excludes #18682 as it was only merged in 3.0.x.

@AntoineNseir
Copy link

I think it's the version 3.0.3 of zendframework/zend-code that cause the issue. I put the line "zendframework/zend-code": "3.0.2" in my composer.json and everything works fine.

"require": {
"php": ">=7.0",
"symfony/symfony": "3.0.",
"alcaeus/mongo-php-adapter": "^1.0.0",
"ext-mongo": "
",
"doctrine/mongodb-odm": "^1.1.0",
"doctrine/mongodb-odm-bundle": "~3.0",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"symfony/assetic-bundle": "^2.7",
"friendsofsymfony/user-bundle": "~2.0@dev",
"liip/imagine-bundle": "^1.3",
"knplabs/knp-paginator-bundle": "^2.5",
"vich/uploader-bundle": "^1.0.1",
"jms/security-extra-bundle": "dev-master",
"mobiledetect/mobiledetectlib": "^2.8",
"mongodb/mongodb": "^1.0.0",
"twig/extensions": "^1.3",
"cocur/slugify": "^2.1",
"jms/translation-bundle": "dev-master",
"zendframework/zend-code": "3.0.2"
},

@lemorragia
Copy link

confirmed...3.0.2 version of zend-code solves the issue

@stof
Copy link
Member
stof commented Jun 28, 2016

Then please report the bug to zend-code

@Tsupakin
Copy link

Thank @AntoineNseir

@entepe85
Copy link
Author

Then please report the bug to zend-code

Will do that asap.

@fabpot
Copy link
Member
fabpot commented Jun 28, 2016

Closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0