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

Bug in checking if stty is in the system #17

Open
toggio opened this issue Jan 31, 2016 · 1 comment
Open

Bug in checking if stty is in the system #17

toggio opened this issue Jan 31, 2016 · 1 comment

Comments

@toggio
Copy link

toggio commented Jan 31, 2016

I get this problem with Raspberry Pi (Minibian last version).
The script work correctly from CLI but stopped if invoked from web browser.
The apache error log show:
"PHP Fatal error: No stty availible, unable to run. in /var/www/html/PhpSerial.php on line 56"

The problem go away if i changed the line
if ($this->_exec("stty") === 0) {
with the old one:
if ($this->_exec("stty --version") === 0) {

@subexl
Copy link

subexl commented Feb 17, 2016

This works for me too on Debian. Thanks

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