From 99554caa69d2aad3a299d5fb65c5791c6d3a3102 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 12 Jun 2013 20:46:23 +0200 Subject: [PATCH] Added some type checks --- src/utils/pthreads.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pthreads.php b/src/utils/pthreads.php index 2edfb0b9..33d16f38 100644 --- a/src/utils/pthreads.php +++ b/src/utils/pthreads.php @@ -48,7 +48,7 @@ class AsyncMultipleQueue extends Thread{ $str = ""; while(!isset($str{$len - 1})){ $str .= $this->input{0}; - $this->input = substr($this->input, 1); + $this->input = (string) substr($this->input, 1); } return $str; }