Giter Club home page Giter Club logo

Comments (11)

tobarja avatar tobarja commented on September 25, 2024

Pretty much the same error on Ubuntu 13.10, so it's not a Linux Mint specific issue.

from boris.

d11wtq avatar d11wtq commented on September 25, 2024

It's clear from the warnings that some functions are in the disabled list in php.ini by default in PHP 5.5 (or maybe just on Ubuntu (from which Mint is derived)). Would somebody mind sending a PR with instructions on how to work around this issue?

from boris.

d11wtq avatar d11wtq commented on September 25, 2024

Makes me wonder if Boris could accept another command line option for an alternate php.ini file. The PHP cli supports this. The complexity comes from the fact it needs to be in the shebang line... however I think re-executing the process in an automated way could solve this. Does PHP have a function equivalent to Ruby's exec (which replaces the currently running program, rather than executing a shell command).

from boris.

tobarja avatar tobarja commented on September 25, 2024

The two ways that could work would be calling php as --no-php-ini or passing a minimal(or empty) php.ini in with the PHPRC environment variable. Sadly, the several stackoverflow questions I reviewed indicated there's no easy way to do either.

On the VirtualBox image I am using to study PHP, I removed each reported offending directive from /etc/php5/cli/php.ini until it ran.

from boris.

movoin avatar movoin commented on September 25, 2024

same error on CenOS 6.5 x86_64
PHP 5.5.7 (cli) (built: Feb 10 2014 13:40:33)

from boris.

d11wtq avatar d11wtq commented on September 25, 2024

@tobarja I'm reluctant to use anything other than the user's php.ini, as I think it is useful to be able to see how things run in your actual PHP environment. I think it would be better to just document what PHP ini settings are needed, and how to change them.

I wouldn't be opposed to a sanity check being added to the code, however, so on startup Boris can look for things it knows it needs, then report to the user that something is missing (and maybe how to fix it).

For anybody attempting a PR of that nature, that code would definitely be encapsulated into its own class, something like Boris\EnvironmentCheck and then executed early in the bin/boris file.

from boris.

ktaragorn avatar ktaragorn commented on September 25, 2024

Same with Mint 16 + php 5.5.3

from boris.

barraponto avatar barraponto commented on September 25, 2024

Works just fine in my Arch Linux setup (running 5.5.10).

from boris.

timotheosh avatar timotheosh commented on September 25, 2024

I don't know if this is an ongoing problem, but I ran into it on NetBSD, today, with php-5.5.14. I had to explicitly add the extensions for pcntl and posix. After that, the problem went away. Most php developers are on Windows/Mac/or Linux, I am sure. But this might help someone.

from boris.

lufeihaidao avatar lufeihaidao commented on September 25, 2024

php 5.4 not work, either

from boris.

tejasmanohar avatar tejasmanohar commented on September 25, 2024

Works for me in Arch, Ubuntu, and OS X. Have you guys tried to isolate this in a virtual box like Vagrant? I'll close this to inactivity, but comment again and it's back.

from boris.

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.