Skip to content
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

Better way for PHP version Errors? #23

Open
ddavisgraphics opened this issue Oct 19, 2015 · 1 comment
Open

Better way for PHP version Errors? #23

ddavisgraphics opened this issue Oct 19, 2015 · 1 comment

Comments

@ddavisgraphics
Copy link

I didn't realize a dependency was causing PHP to update which in turn affected engineAPI.

Is there a way to set an error that checks to see what version of PHP is installed into engine, and then fire off a warning to specifically wrong php version.

possible to do something like this ??

$currentPHP = phpversion();
$versionNumber = "5.3.3";
if($currentPHP != $versionNumber){
throw new Exception('PHP Version Error - ' .$versionNumber);
}

@MichaelRBond
Copy link
Contributor

I know engine api works with 5.3.x, i'm pretty sure it doesn't work with 5.4 as is. it wouldn't take too much to make it compatible with both.

i think the there are a couple places that still pass by reference, which, iirc, isn't supported in 5.4

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

No branches or pull requests

2 participants