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

Constants not working in PHP 7.2 #1

Open
sigma67 opened this issue Nov 1, 2018 · 1 comment
Open

Constants not working in PHP 7.2 #1

sigma67 opened this issue Nov 1, 2018 · 1 comment

Comments

@sigma67
Copy link

sigma67 commented Nov 1, 2018

In PHP 7.2 there is now the following exception when trying to use the LE, GE, EQ constants:

ErrorException: Use of undefined constant LE - assumed 'LE' (this will throw an Error in a future version of PHP)

@remoteclient
Copy link

I had the same issue today. After I changed all occurrencies to quotated ones like GE to 'GE' I got an exception the php can't find the LPsolve extension. I looked on the system and saw that I symlinked the extension from a folder which got deleted. When I copied the extension in the reight place for my php version it was working again without any modifikations to the code.

So my guess is, that you upgraded the php version and didn't install the LPsolve extension for the new php version. I am on php 7.2 and it works.

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

No branches or pull requests

2 participants