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

PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar: when using php 7 #297

Closed
stevleibelt opened this Issue Dec 19, 2015 · 49 comments

Comments

Projects
None yet
10 participants
@stevleibelt

stevleibelt commented Dec 19, 2015

Hey there,

I get the following error when switching to php 7.

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///<path>/sculpin.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Kind regards,
stev

@stevleibelt stevleibelt changed the title from PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar: pn php 7 to PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar: when using php 7 Dec 20, 2015

@gnugat

This comment has been minimized.

gnugat commented Dec 21, 2015

Same here, the error seems to come from justinrainbow/json-schema.
Luckily for us, it's been fixed in JSON Schema v1.4 so an update of Sculpin's dependencies might fix the issue.

@evert evert referenced this issue Jan 4, 2016

Closed

PHP 7 support #299

@simensen

This comment has been minimized.

Member

simensen commented Jan 4, 2016

@evert @gnugat @stevleibelt Can any of you do a sculpin self-update and see if it gets further PHP 7 now?

@evert

This comment has been minimized.

Contributor

evert commented Jan 4, 2016

Would you mind providing a .phar? I don't have multiple PHP's running and self-update breaks before it can update itself.

@simensen

This comment has been minimized.

Member

simensen commented Jan 4, 2016

@evert sure!

curl -O https://download.sculpin.io/sculpin.phar

There is a link here, too: https://sculpin.io/download/

@evert

This comment has been minimized.

Contributor

evert commented Jan 4, 2016

Works! awesome.

builds site immediately

@simensen

This comment has been minimized.

Member

simensen commented Jan 4, 2016

Awesome. I'm closing this until we find the next PHP 7 issue. :)

@simensen simensen closed this Jan 4, 2016

@gnugat

This comment has been minimized.

gnugat commented Jan 6, 2016

Thank you for looking into this, it's fixed now.

@evert

This comment has been minimized.

Contributor

evert commented Jan 6, 2016

Hey, I'm very sorry but I made a mistake. I think I just tested this on the computer I was on at the time, which had PHP 5.6. Trying this again on my laptop (this time with PHP7 for real) still throws this error.

What change did you make @simensen to support this? Is it using the correct version of json-schema now?

@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

@evert Did you get a brand new version of the phar via direct download? What version does it say when you run the version command? If you can provide the full error output that would be helpful, too, so I can try and track this down better.

@simensen simensen reopened this Jan 6, 2016

@evert

This comment has been minimized.

Contributor

evert commented Jan 6, 2016

Alright I also understand a bit better what went wrong earlier.

If I run sculpin in a random directory, sculpin runs and I get:

Sculpin version 2.0.x-dev (v2.0.0-46-g0862cc9) - app/dev/debug

This is what must have tripped me over. When I cd into my actual sculpin website's directory I get the earlier error.

@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

@evert huh. so you still get the string error message when you are in your website directory? are you installing sculpin locally in that directory via composer.json instead of using the phar? i'm pretty confused about what is actually going on and i'm not sure if you're saying you still have a problem or not.

@evert

This comment has been minimized.

Contributor

evert commented Jan 6, 2016

So... yes I do still get the error.

Steps to reproduce:

  1. Install php7
  2. Install latest sculpin
  3. run sculpin (no error)
  4. Download my website source
  5. cd into source
  6. Run sculpin again, receive error.

I'm not installing sculpin via composer manually, just using the phar.

Links:

@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

Can you share the error as well? The one you get showing the broken class?

@evert

This comment has been minimized.

Contributor

evert commented Jan 6, 2016

PHP Fatal error:  Cannot use 'String' as class name as it is reserved in phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18
PHP Stack trace:
PHP   1. {main}() /home/evert/bin/sculpin:0
PHP   2. require() /home/evert/bin/sculpin:9
PHP   3. include() phar:///home/evert/bin/sculpin/bin/sculpin-phar-stub:16
PHP   4. Dflydev\EmbeddedComposer\Core\EmbeddedComposerBuilder->build() phar:///home/evert/bin/sculpin/bin/sculpin.php:69
PHP   5. Composer\Json\JsonFile->validateSchema() phar:///home/evert/bin/sculpin/vendor/dflydev/embedded-composer-core/Dflydev/EmbeddedComposer/Core/EmbeddedComposerBuilder.php:130
PHP   6. JsonSchema\Validator->check() phar:///home/evert/bin/sculpin/vendor/composer/composer/src/Composer/Json/JsonFile.php:161
PHP   7. JsonSchema\Constraints\Schema->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php:41
PHP   8. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Schema.php:29
PHP   9. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
PHP  10. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
PHP  11. JsonSchema\Constraints\Constraint->checkObject() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:74
PHP  12. JsonSchema\Constraints\Object->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:158
PHP  13. JsonSchema\Constraints\Object->validateDefinition() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:36
PHP  14. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:117
PHP  15. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
PHP  16. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
PHP  17. JsonSchema\Constraints\Constraint->checkObject() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:74
PHP  18. JsonSchema\Constraints\Object->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:158
PHP  19. JsonSchema\Constraints\Object->validateElement() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:40
PHP  20. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:100
PHP  21. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
PHP  22. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
PHP  23. JsonSchema\Constraints\Constraint->checkString() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:80
PHP  24. spl_autoload_call() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:205
PHP  25. Composer\Autoload\ClassLoader->loadClass() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:205
PHP  26. Composer\Autoload\includeFile() phar:///home/evert/bin/sculpin/vendor/composer/ClassLoader.php:301

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Call Stack:
    0.0001     358424   1. {main}() /home/evert/bin/sculpin:0
    0.0097    1144624   2. require('phar:///home/evert/bin/sculpin/bin/sculpin-phar-stub') /home/evert/bin/sculpin:9
    0.0126    1752432   3. include('phar:///home/evert/bin/sculpin/bin/sculpin.php') phar:///home/evert/bin/sculpin/bin/sculpin-phar-stub:16
    0.0135    1895016   4. Dflydev\EmbeddedComposer\Core\EmbeddedComposerBuilder->build() phar:///home/evert/bin/sculpin/bin/sculpin.php:69
    0.0149    2095608   5. Composer\Json\JsonFile->validateSchema() phar:///home/evert/bin/sculpin/vendor/dflydev/embedded-composer-core/Dflydev/EmbeddedComposer/Core/EmbeddedComposerBuilder.php:130
    0.0153    2215856   6. JsonSchema\Validator->check() phar:///home/evert/bin/sculpin/vendor/composer/composer/src/Composer/Json/JsonFile.php:161
    0.0153    2220936   7. JsonSchema\Constraints\Schema->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php:41
    0.0153    2220936   8. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Schema.php:29
    0.0156    2268440   9. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
    0.0158    2288368  10. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
    0.0158    2288368  11. JsonSchema\Constraints\Constraint->checkObject() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:74
    0.0159    2311152  12. JsonSchema\Constraints\Object->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:158
    0.0159    2311208  13. JsonSchema\Constraints\Object->validateDefinition() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:36
    0.0162    2311264  14. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:117
    0.0162    2311376  15. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
    0.0162    2311432  16. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
    0.0162    2311432  17. JsonSchema\Constraints\Constraint->checkObject() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:74
    0.0162    2311544  18. JsonSchema\Constraints\Object->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:158
    0.0166    2311656  19. JsonSchema\Constraints\Object->validateElement() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:40
    0.0166    2311696  20. JsonSchema\Constraints\Constraint->checkUndefined() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php:100
    0.0166    2311808  21. JsonSchema\Constraints\Undefined->check() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:190
    0.0166    2311912  22. JsonSchema\Constraints\Undefined->validateTypes() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:49
    0.0166    2311912  23. JsonSchema\Constraints\Constraint->checkString() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:80
    0.0166    2311912  24. spl_autoload_call() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:205
    0.0166    2312048  25. Composer\Autoload\ClassLoader->loadClass() phar:///home/evert/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:205
    0.0166    2312048  26. Composer\Autoload\includeFile() phar:///home/evert/bin/sculpin/vendor/composer/ClassLoader.php:301
@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

Alright, something is wrong w/ my build script. :( I'm on it.

@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

@evert Sigh. There seems to be something very weird w/ box (or how I'm using it) because sculpin --version is very different output from sculpin --git-version. However, aside from that, it is possible that my last uploaded build didn't actually go in right as the --version output you pasted earlier was not current. This will take me some time that I don't have right now to resolve. :(

All that said, as a temporary workaround, you could clone sculpin locally and composer install and use that version for the time being. I think that should work for you.

@simensen

This comment has been minimized.

Member

simensen commented Jan 6, 2016

By that, I mean that PHP 7 should be fully supported by what is in the repository now. I need to fix this build pipeline soon, though, so hopefully it will only be a temporary workaround.

@evert

This comment has been minimized.

Contributor

evert commented Jan 6, 2016

alright thanks, good to know! at least I'll have a workaround

@gnugat

This comment has been minimized.

gnugat commented Jan 7, 2016

All that said, as a temporary workaround, you could clone sculpin locally and composer install and use that version for the time being. I think that should work for you.

I confirm that this workaround works (I used it while waiting for the fix, but forgot to mention it here, sorry about that).

@vrkansagara

This comment has been minimized.

vrkansagara commented Mar 12, 2016

Am still facing some related issue here .

Recentily I have downloaded the a skeleton and tried to install it as bellow.

sculpin.phar install
PHP Fatal error:  Cannot use 'String' as class name as it is reserved in phar://<<CURRENT_LOCATION>>/sculpin.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Fatal error: Cannot use 'String' as class name as it is reserved in phar://<<CURRENT_LOCATION>>/sculpin.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

sculpin.phar --version
Sculpin version 2.0.x-dev (v2.0.0-46-g0862cc9) - app/dev/debug

PHP 7.0.4-3+deb.sury.org~trusty+4 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

What I am doing wrong.

@stevleibelt

This comment has been minimized.

stevleibelt commented Mar 12, 2016

@vrkansagara so far, nothing beside switching back to php 5.6.*

@vrkansagara

This comment has been minimized.

vrkansagara commented Mar 13, 2016

@stevleibelt Thanks.

@gnugat

This comment has been minimized.

gnugat commented Mar 13, 2016

@vrkansagara & @stevleibelt: Or as mentioned by @simensen use this work around for PHP 7:

git clone https://github.com/sculpin/sculpin.git
cd sculpin
composer install -o
sudo cp bin/sculpin /usr/local/sculpin
@vrkansagara

This comment has been minimized.

vrkansagara commented Mar 13, 2016

@gnugat
I think you are talking about how to optimized autoload file.
The main problem with the sculpin.phar file while executing without any parameters.

@gnugat

This comment has been minimized.

gnugat commented Mar 13, 2016

Nope, I'm talking about installing a PHP 7 compatible sculpin.

The error you get is caused by a dependency of sculpin that isn't compatible with PHP 7 (it has a class named String, and string has become a language keyword in PHP 7). It is only encountered when using the installer. If you install sculpin using the instructions I've given you won't have the issue. Give it a try.

@vrkansagara

This comment has been minimized.

vrkansagara commented Mar 13, 2016

@gnugat Am taking about running a server with sculpin.phar and yes for your answer as sculpin.phar installation I have already installed using composer so dont worry man.

@Ollie-w

This comment has been minimized.

Ollie-w commented Apr 2, 2016

I have the same problem. When I try to run Sculpin install I get the message.

sculpin self-update
You are using the latest Sculpin version.

I am using the latest version and yet...

PHP Fatal error:  Cannot use 'String' as class name as it is reserved in phar:///usr/local/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///usr/local/bin/sculpin/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

I am running php 7.

@petemcfarlane

This comment has been minimized.

petemcfarlane commented Apr 7, 2016

I'm still having the same problem. I followed the instructions as described by @gnugat except instead of copying the executable, I created a symlink, like so:

git clone https://github.com/sculpin/sculpin.git
cd sculpin
composer install -o
ln -s $PWD/bin/sculpin /usr/local/bin/sculpin
@KingCrunch

This comment has been minimized.

KingCrunch commented May 18, 2016

The phar downloads still contains justinrainbow/json-schema:1.3.7, so even self-update doesn't fix it. Could you publish a new version (maybe 2.1?) with the fixed dependencies?

@evert

This comment has been minimized.

Contributor

evert commented May 18, 2016

That would be so great! Sculpin is starting to look bad!

@vrkansagara

This comment has been minimized.

vrkansagara commented May 19, 2016

👍 @evert

@simensen

This comment has been minimized.

Member

simensen commented May 21, 2016

I spent some time tonight looking at the sad state that is the Sculpin build process. There are several places that things have fallen down. Not the least of which is that my automated subtree repository splits are broken. The infrastructure there was so hacky I don't even know where to begin to fix it. It would take more time and energy to fix it than I have to put into it at this point.

This means that for all intents and purposes, the subtree splits for Sculpin components and Embedded Composer components are stuck where they are now. Sucks, but I'm not sure I have any other options. I'm going to look into abandoning the components and just suggest people install the main package if they are going to.

You can see the work I have been able to do in #311. There was a PR against embedded composer that will hopefully make the themes plugin work again. I've also changed the dependencies across the board to support Composer stable ^1.0.

These things together will hopefully allow successful installs from git again.

If you were previously using sculpin.json, I think the migration is simply mv sculpin.json composer.json (assuming you don't also have a composer.json file already....).

@evert

This comment has been minimized.

Contributor

evert commented May 21, 2016

hm. well using composer for dependencies and using sculpin just for building the site makes as much sense, and maybe even more sense to me than the current model ;) I never fully understood why sculpin also had to do what composer is doing.

But right now I'm using a globally installed sculpin. So is full upgrade path then:

mv sculpin.json composer.json
composer require sculpin/sculpin

And then I should be able to just call vendor/bin/sculpin

Or am I missing something?

@simensen

This comment has been minimized.

Member

simensen commented May 23, 2016

@evert yes, that should be close. most likely:

composer require sculpin/sculpin:^2.1@dev

as for doing why sculpin was doing what composer does is because sculpin initially started out as a proof of concept for the whole idea of embedding composer into an application to manage application-specific plugins. i wanted an app that shipped as a phar that managed all of its own dependencies and allowed you to extend it by installation plugins with the phar itself.

the idea was only somewhat popular (i only know a handful of applications that have tried it) and people have just grown accustomed to having composer install all the things in all cases anyway so it has become less interesting for me to pursue that idea over time. i'm more liking the idea of the project owning all of its dependencies and not relying on global installs for things these days so this change works with that ok.

i've seen no objections to this pr. i'll likely merge it tonight unless someone has an issue with it i haven't thought about yet. hopefully then tomorrow we can try to build with the code merged and see if master starts working w/ the workflow listed here to migrate from sculpin.json to composer.json.

@simensen

This comment has been minimized.

Member

simensen commented May 23, 2016

Getting closer but I'll have to look at it more tonight. Looks like I need to update the theme package to support composer-plugin-api ^1.0 instead of just 1.0.0.

composer require sculpin/sculpin:^2.1@dev dflydev/embedded-composer:^1.0@dev

image
http://d.pr/i/9g7w

@evert

This comment has been minimized.

Contributor

evert commented May 24, 2016

Exciting! Thanks for picking this back up @simensen . I imagine not embedding composer might also reduce the footprint of sculpin quite a bit, making it easier to maintain.

@simensen

This comment has been minimized.

Member

simensen commented May 24, 2016

After tagging the plugin I was able to get this migration path to work just fine. I was also able to do some simple benchmark stuff to see the speed difference that PHP 7 makes for the first time. :) Good times.

@evert Can you try the migration on your site to see if it works?

Thanks!

@simensen

This comment has been minimized.

Member

simensen commented May 24, 2016

Both beau.io and sculpin.io are now built using this migration path and my deploy scripts on forge have been updated accordingly. Everything looks good.... so far.

@evert

This comment has been minimized.

Contributor

evert commented May 24, 2016

Still getting an issue with this:

✗ composer require sculpin/sculpin:^2.1@dev dflydev/embedded-composer:^1.0@dev
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sculpin/sculpin ^2.1@dev -> satisfiable by sculpin/sculpin[2.1.x-dev].
    - Conclusion: remove symfony/process v3.0.6
    - Conclusion: don't install symfony/process v3.0.6
    - sculpin/sculpin 2.1.x-dev requires symfony/process ~2.3 -> satisfiable by symfony/process[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6].
    - Can only install one of: symfony/process[v2.3.0, v3.0.6].
    - Can only install one of: symfony/process[v2.3.1, v3.0.6].
    - Can only install one of: symfony/process[v2.3.10, v3.0.6].
    - Can only install one of: symfony/process[v2.3.11, v3.0.6].
    - Can only install one of: symfony/process[v2.3.12, v3.0.6].
    - Can only install one of: symfony/process[v2.3.13, v3.0.6].
    - Can only install one of: symfony/process[v2.3.14, v3.0.6].
    - Can only install one of: symfony/process[v2.3.15, v3.0.6].
    - Can only install one of: symfony/process[v2.3.16, v3.0.6].
    - Can only install one of: symfony/process[v2.3.17, v3.0.6].
    - Can only install one of: symfony/process[v2.3.18, v3.0.6].
    - Can only install one of: symfony/process[v2.3.19, v3.0.6].
    - Can only install one of: symfony/process[v2.3.2, v3.0.6].
    - Can only install one of: symfony/process[v2.3.20, v3.0.6].
    - Can only install one of: symfony/process[v2.3.21, v3.0.6].
    - Can only install one of: symfony/process[v2.3.22, v3.0.6].
    - Can only install one of: symfony/process[v2.3.23, v3.0.6].
    - Can only install one of: symfony/process[v2.3.24, v3.0.6].
    - Can only install one of: symfony/process[v2.3.25, v3.0.6].
    - Can only install one of: symfony/process[v2.3.26, v3.0.6].
    - Can only install one of: symfony/process[v2.3.27, v3.0.6].
    - Can only install one of: symfony/process[v2.3.28, v3.0.6].
    - Can only install one of: symfony/process[v2.3.29, v3.0.6].
    - Can only install one of: symfony/process[v2.3.3, v3.0.6].
    - Can only install one of: symfony/process[v2.3.30, v3.0.6].
    - Can only install one of: symfony/process[v2.3.31, v3.0.6].
    - Can only install one of: symfony/process[v2.3.32, v3.0.6].
    - Can only install one of: symfony/process[v2.3.33, v3.0.6].
    - Can only install one of: symfony/process[v2.3.34, v3.0.6].
    - Can only install one of: symfony/process[v2.3.35, v3.0.6].
    - Can only install one of: symfony/process[v2.3.36, v3.0.6].
    - Can only install one of: symfony/process[v2.3.37, v3.0.6].
    - Can only install one of: symfony/process[v2.3.38, v3.0.6].
    - Can only install one of: symfony/process[v2.3.39, v3.0.6].
    - Can only install one of: symfony/process[v2.3.4, v3.0.6].
    - Can only install one of: symfony/process[v2.3.40, v3.0.6].
    - Can only install one of: symfony/process[v2.3.41, v3.0.6].
    - Can only install one of: symfony/process[v2.3.5, v3.0.6].
    - Can only install one of: symfony/process[v2.3.6, v3.0.6].
    - Can only install one of: symfony/process[v2.3.7, v3.0.6].
    - Can only install one of: symfony/process[v2.3.8, v3.0.6].
    - Can only install one of: symfony/process[v2.3.9, v3.0.6].
    - Can only install one of: symfony/process[v2.4.0, v3.0.6].
    - Can only install one of: symfony/process[v2.4.1, v3.0.6].
    - Can only install one of: symfony/process[v2.4.10, v3.0.6].
    - Can only install one of: symfony/process[v2.4.2, v3.0.6].
    - Can only install one of: symfony/process[v2.4.3, v3.0.6].
    - Can only install one of: symfony/process[v2.4.4, v3.0.6].
    - Can only install one of: symfony/process[v2.4.5, v3.0.6].
    - Can only install one of: symfony/process[v2.4.6, v3.0.6].
    - Can only install one of: symfony/process[v2.4.7, v3.0.6].
    - Can only install one of: symfony/process[v2.4.8, v3.0.6].
    - Can only install one of: symfony/process[v2.4.9, v3.0.6].
    - Can only install one of: symfony/process[v2.5.0, v3.0.6].
    - Can only install one of: symfony/process[v2.5.1, v3.0.6].
    - Can only install one of: symfony/process[v2.5.10, v3.0.6].
    - Can only install one of: symfony/process[v2.5.11, v3.0.6].
    - Can only install one of: symfony/process[v2.5.12, v3.0.6].
    - Can only install one of: symfony/process[v2.5.2, v3.0.6].
    - Can only install one of: symfony/process[v2.5.3, v3.0.6].
    - Can only install one of: symfony/process[v2.5.4, v3.0.6].
    - Can only install one of: symfony/process[v2.5.5, v3.0.6].
    - Can only install one of: symfony/process[v2.5.6, v3.0.6].
    - Can only install one of: symfony/process[v2.5.7, v3.0.6].
    - Can only install one of: symfony/process[v2.5.8, v3.0.6].
    - Can only install one of: symfony/process[v2.5.9, v3.0.6].
    - Can only install one of: symfony/process[v2.6.0, v3.0.6].
    - Can only install one of: symfony/process[v2.6.1, v3.0.6].
    - Can only install one of: symfony/process[v2.6.10, v3.0.6].
    - Can only install one of: symfony/process[v2.6.11, v3.0.6].
    - Can only install one of: symfony/process[v2.6.12, v3.0.6].
    - Can only install one of: symfony/process[v2.6.13, v3.0.6].
    - Can only install one of: symfony/process[v2.6.2, v3.0.6].
    - Can only install one of: symfony/process[v2.6.3, v3.0.6].
    - Can only install one of: symfony/process[v2.6.4, v3.0.6].
    - Can only install one of: symfony/process[v2.6.5, v3.0.6].
    - Can only install one of: symfony/process[v2.6.6, v3.0.6].
    - Can only install one of: symfony/process[v2.6.7, v3.0.6].
    - Can only install one of: symfony/process[v2.6.8, v3.0.6].
    - Can only install one of: symfony/process[v2.6.9, v3.0.6].
    - Can only install one of: symfony/process[v2.7.0, v3.0.6].
    - Can only install one of: symfony/process[v2.7.1, v3.0.6].
    - Can only install one of: symfony/process[v2.7.10, v3.0.6].
    - Can only install one of: symfony/process[v2.7.11, v3.0.6].
    - Can only install one of: symfony/process[v2.7.12, v3.0.6].
    - Can only install one of: symfony/process[v2.7.13, v3.0.6].
    - Can only install one of: symfony/process[v2.7.2, v3.0.6].
    - Can only install one of: symfony/process[v2.7.3, v3.0.6].
    - Can only install one of: symfony/process[v2.7.4, v3.0.6].
    - Can only install one of: symfony/process[v2.7.5, v3.0.6].
    - Can only install one of: symfony/process[v2.7.6, v3.0.6].
    - Can only install one of: symfony/process[v2.7.7, v3.0.6].
    - Can only install one of: symfony/process[v2.7.8, v3.0.6].
    - Can only install one of: symfony/process[v2.7.9, v3.0.6].
    - Can only install one of: symfony/process[v2.8.0, v3.0.6].
    - Can only install one of: symfony/process[v2.8.1, v3.0.6].
    - Can only install one of: symfony/process[v2.8.2, v3.0.6].
    - Can only install one of: symfony/process[v2.8.3, v3.0.6].
    - Can only install one of: symfony/process[v2.8.4, v3.0.6].
    - Can only install one of: symfony/process[v2.8.5, v3.0.6].
    - Can only install one of: symfony/process[v2.8.6, v3.0.6].
    - Installation request for symfony/process == 3.0.6.0 -> satisfiable by symfony/process[v3.0.6].

Installation failed, reverting ./composer.json to its original content.
@evert

This comment has been minimized.

Contributor

evert commented May 29, 2016

Some news: it worked now.

the difference? I'm installing on PHP 7. I've always been going back and forward between PHP 5 and 7, and I only got that dependency problem when trying it on PHP 5.

Works on 7 though!

@georgiana-gligor

This comment has been minimized.

georgiana-gligor commented Aug 25, 2016

I'm still experiencing this, has anyone reached any progress? I'm using the beta macOS (OSX 10.12) and PHP 7 installed with brew. Except for Sculpin, everything else is working. Unfortunately this forced me into not updating my site in a few months, and I'll probably have to investigate other options.

@simensen

This comment has been minimized.

Member

simensen commented Aug 25, 2016

@georgiana-gligor Hi! I apologize for the problems you have been experiencing. Are you trying to use the phar? Or are you using composer installed version for your site? Is your repo public? :)

@georgiana-gligor

This comment has been minimized.

georgiana-gligor commented Aug 25, 2016

Hey @simensen , thanks for the quick reply!
My repo is publicly available here: https://github.com/tekkie/tekkie.ro

➤ php -v
PHP 7.0.8 (cli) (built: Jun 23 2016 16:32:40) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans

I grabbed the phar and moved it with +x permissions under /usr/local/bin/sculpin. I can't find out its version or anything, as I get the Cannot use 'String' as class name message.

@simensen

This comment has been minimized.

Member

simensen commented Aug 25, 2016

@georgiana-gligor Yeah, OK, I need to get this blogged about. :( The phar distribution stuff is broken and stuck at an older version of Sculpin. That version of Sculpin doesn't support PHP 7 and I don't think there will ever be a phar that supports PHP 7.

Let me see if I can get your site building under PHP 7 sometime today using composer installed Scupin instead of the phar. But first I should ask, would you consider trying that? :)

@georgiana-gligor

This comment has been minimized.

georgiana-gligor commented Aug 25, 2016

Would be happy to help you with this, I would prefer not to switch to another system. It took me a month to decide on it anyway...

The thing that got me started specifically today was that I wanted to add a blogpost about how I went to a tech conference and give the organizers a link to promote, but I guess I can wait until tomorrow.

I just I don't add a lot on your plate in a short amount of time. Let me know if I can help. Will be offline for 3 hrs, and then back on.

@georgiana-gligor

This comment has been minimized.

georgiana-gligor commented Aug 25, 2016

I'll add my solution here, in case someone else needs it. Thanks @simensen for helping me find it!

A few months ago I moved sculpin.json to composer.json and added

  "sculpin/sculpin": "^2.1@dev",
  "dflydev/embedded-composer": "^1.0@dev",

as dependencies in the require section of my new composer.json.

My mistake was that I kept on running the /usr/local/bin/sculpin version, which was not running.

The correct way to call it for me was to use ./vendor/bin/sculpin generate instead.

@simensen

This comment has been minimized.

Member

simensen commented Sep 1, 2016

I'm going to close this issue now. I've finally blogged about Deprecating Phar Distribution and Embedded Composer. If we still have issues w/ PHP 5.x please open a new issue for that. I'm guessing that we should bite the bullet and upgrade all of our Symfony stack to fix those issues.

Thanks for all your patience. :)

@simensen simensen closed this Sep 1, 2016

@raphaeldealmeida

This comment has been minimized.

raphaeldealmeida commented Oct 3, 2016

Please update the "get started" https://sculpin.io/getstarted/
the guide in there is still throwing that error

@vrkansagara

This comment has been minimized.

vrkansagara commented Oct 4, 2016

hum!!

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