Coder Social home page Coder Social logo

After following the instructions up to enter php artisan, returned an error [Segmentation fault: 11] about laravel-4-generators HOT 19 CLOSED

jeffreyway avatar jeffreyway commented on May 9, 2024
After following the instructions up to enter php artisan, returned an error [Segmentation fault: 11]

from laravel-4-generators.

Comments (19)

JeffreyWay avatar JeffreyWay commented on May 9, 2024

Can you tell me exactly what steps you took to see that error?

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

I added "way/generators": "dev-master" to my composer.json and ran composer update .. after that I added the 'Way\Generators\GeneratorsServiceProvider' to the app.php file and I ran php artisan and the error then occurred.

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

Are you using PHP 5.3 or below?

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

PHP 5.4.4

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

*5.4.1.0

from laravel-4-generators.

clarkeash avatar clarkeash commented on May 9, 2024

I am getting the same error. php 5.3.15

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

It's using the 5.4 syntax for arrays. I'll fix that right now, so that 5.3 users won't have any problems.

from laravel-4-generators.

clarkeash avatar clarkeash commented on May 9, 2024

Awesome cheers :)

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

Okay, a composer update will bring in the new changes.

2bf52e2

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Works! Cheers!

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

Christian - just a note that, if the array issue was in fact the problem, that means that you're not using PHP 5.4. Do you maybe have two versions on your computer?

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Actually the fatal still occurred after running php artisan (after running composer update), I am running MAMP and have specifically set Php 5.4.1.0 and the same fatal with 'Parse: parse error in vendor/way/generators/src/commands/GenerateResourceCommand.php line 63'

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Just added info.php and it confirms php 5.4.10

from laravel-4-generators.

NateLedet avatar NateLedet commented on May 9, 2024

Your command line may not be utilizing php54

Run 'which php' - what does it say?

On Feb 20, 2013, at 12:41 PM, Christian Ramsey [email protected] wrote:

Just added info.php and it confirms php 5.4.10


Reply to this email directly or view it on GitHub.

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Comes back as so : /usr/bin/php

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

And when you do php -v?

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Ahh 5.3.15 with Suhosin-Patch

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on May 9, 2024

Yeah, there's your problem. You have two versions of PHP on your computer.

from laravel-4-generators.

christianramsey avatar christianramsey commented on May 9, 2024

Great catch lads,
I am updating the php from php-osx.liip.ch, is this the correct way to go about it, or should I be pointing to the php that is being used on Mamp?

from laravel-4-generators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.