@Override
        public void write(int b) throws IOException {
            stream.write(env, new BinaryMemory((byte)b), Memory.NULL);
        }
@param arg - File path or Stream object
@return
jphp-runtime/src/php/runtime/ext/core/classes/stream/Stream.java