-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Warning message #3030
Comments
It is really weird. The line 118 is https://github.com/composer/composer/blob/master/src/Composer/Autoload/ClassMapGenerator.php#L118 and the composer error handler should convert the warning to an exception going through the catch block, and so giving a different message |
I have had this in the past 3-5 versions of composer. Here is a bigger portion of the log: Writing lock file It's not a critical error... just a tad annoying. |
I have a same warning on some servers |
are you using |
No, it's a production server, so we aren't running xdebug. |
I can give you a link to phpinfo if you want, just drop me a mail. |
Indeed it's weird that this does not get converted to an exception, it'd be great to identify the file causing it (you must have a |
I'm able to replicate this issue, though the cited line of the unterminated comment is 31 instead of 12. I was running Xdebug, but disabled it and still get the error. I've tried PHP 5.5.12-14 with e77435c. I don't know if it'll help, but I've included the {
"name": "blopboard/services-embed",
"description": "Blopboard web service for creating and retrieving embedded media",
"autoload": {
"psr-4": {
"Blopboard\\Services\\Embed\\": "src"
}
},
"require": {
"php": ">=5.4.0",
"ext-pdo": "*",
"blopboard/services-commons": "dev-master",
"silex/silex": "1.2.*",
"monolog/monolog": "1.10.*",
"predis/predis": "0.8.*",
"aura/sql": "2.0.*",
"guzzlehttp/guzzle": "4.1.*"
},
"suggest": {
"ext-phpiredis": "for optimizing Redis traffic (see https://github.com/nrk/phpiredis)"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:blopboard/blopboard-services-commons.git"
}
]
} I can also confirm that I'm not seeing the issue with this {
"name": "blopboard/services-commons",
"description": "Communal code and documentation for Blopboard web services",
"autoload": {
"psr-4": {
"Blopboard\\Services\\Commons\\": "src"
}
},
"suggest": {
"silex/silex": "base framework for web services, recommended 1.2.*",
"monolog/monolog": "for using MonologServiceProvider, recommended 1.10.*",
"predis/predis": "for using PredisServiceProvider, recommended 0.8.*",
"ext-phpiredis": "for optimizing Redis traffic (see https://github.com/nrk/phpiredis)",
"aura/sql": "for using PdoServiceProvider, recommended 2.0.*",
"guzzlehttp/guzzle": "HTTP client library, recommended 4.1.*"
}
} |
I'd need someone with a repro case to run composer from source and add some debug output in the ClassMapGenerator to see which file it's coming from so we can maybe reduce the repro case. I tried with a file having |
Found a repro case with this file : <?php /* #?ini charset="utf-8"?
[WindowControlsSettings]
AdditionalTabs[]=commentsbundle
[AdditionalTab_commentsbundle]
Title=
Description=
NavigationPartName=ezcontentnavigationpart
HeaderTemplate=commentsbundle_header.tpl
Template=commentsbundle.tpl |
Seems like https://bugs.php.net/bug.php?id=41773 or some variant of it is still alive and kicking. I got this simple repro case on 5.4.4-14+deb7u7 thanks to @pborreli's machine:
Which outputs:
This is messed up. And I can't reproduce it on an ubuntu php5.4.6. |
Looking at the source it seems the zend_strip call outputs stuff to STDERR that go through the boundary of php_output_start_default / php_output_discard. That's just my crappy understanding of PHP C though. |
And just to wrap up, reported at https://bugs.php.net/bug.php?id=67655 |
I keep getting a warning message everytime I run 'composer update':
PHP Warning: Unterminated comment starting line 12 in phar:///home/evanions/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php on line 118
I'm using composer together with laravel.
The text was updated successfully, but these errors were encountered: