Comments (11)
Pretty much the same error on Ubuntu 13.10, so it's not a Linux Mint specific issue.
from boris.
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.
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.
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.
same error on CenOS 6.5 x86_64
PHP 5.5.7 (cli) (built: Feb 10 2014 13:40:33)
from boris.
@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.
Same with Mint 16 + php 5.5.3
from boris.
Works just fine in my Arch Linux setup (running 5.5.10).
from boris.
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.
php 5.4 not work, either
from boris.
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)
- Feature request: add dependencies to the readme HOT 1
- Broken backwards compatibility HOT 11
- Previous and next command with up and down arrow not working HOT 7
- Segmentation Fault HOT 11
- Bug: "use" and "::class" doesn't return the same class. HOT 2
- Undefined variable: boris in .borisrc HOT 1
- CTRL+U incorrect behaviour HOT 4
- Delete key produces tilde HOT 4
- Unicode characters were not accepted HOT 2
- Curly braces used for object property dereferencing cause parse error
- Demo URL is broken in readme file HOT 1
- Can not echo global variable HOT 1
- Packagist no longer has different version based of tags HOT 3
- HTTP Clients may fail silently
- SemVer breakage. HOT 1
- do/while loop doesn't work. HOT 1
- Composer >1.3.0 compatibility
- Support strict types.
- Redefine class/functions
- Demo link returns "Not Found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boris.