Exemplo n.º 1
0
            public override IPhpArray EnsureArray(ref PhpValue me)
            {
                var str = new PhpString(me.String); // upgrade to mutable string
                var arr = str.EnsureWritable();     // ensure its internal blob

                me = PhpValue.Create(str);          // copy back new value

                //
                return(arr);
            }
Exemplo n.º 2
0
 /// <summary>
 /// Gets instance of blob that is not shared.
 /// </summary>
 public static Blob AsWritable(PhpString str) => str.EnsureWritable();