From 8b044e7b199c69669812b48cf34bcb5db477063d Mon Sep 17 00:00:00 2001 From: mvagovszky Date: Fri, 16 May 2014 11:33:57 +0200 Subject: [PATCH] Fix constructor funkcionality under apache environment (before it does not work for me) --- src/PhpSerial.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSerial.php b/src/PhpSerial.php index 1d253d5..0a6f6ce 100644 --- a/src/PhpSerial.php +++ b/src/PhpSerial.php @@ -47,7 +47,7 @@ public function PhpSerial() if (substr($sysName, 0, 5) === "Linux") { $this->_os = "linux"; - if ($this->_exec("stty") === 0) { + if ($this->_exec("stty --version") === 0) { register_shutdown_function(array($this, "deviceClose")); } else { trigger_error(