lib/php_process.rb in php_process-0.0.8 vs lib/php_process.rb in php_process-0.0.9
- old
+ new
@@ -1,7 +1,7 @@
-require "wref"
-require "tsafe"
+require "wref" if !Kernel.const_defined?(:Wref)
+require "tsafe" if !Kernel.const_defined?(:Tsafe)
require "php-serialize4ruby"
require "base64"
require "open3"
#This class starts a PHP-process and proxies various calls to it. It also spawns proxy-objects, which can you can call like they were normal Ruby-objects.
@@ -62,10 +62,10 @@
@stdout.sync = true
@stdin.sync = true
@stdin.set_encoding("iso-8859-1:utf-8")
- @stderr.set_encoding("utf-8:iso-8859-1")
+ #@stderr.set_encoding("utf-8:iso-8859-1")
@stdout.set_encoding("utf-8:iso-8859-1")
@err_thread = Thread.new do
begin
@stderr.each_line do |str|
\ No newline at end of file