tests: unserialize($stream)
authorMichael Wallner <mike@php.net>
Mon, 10 Jan 2022 14:34:35 +0000 (15:34 +0100)
committerMichael Wallner <mike@php.net>
Mon, 10 Jan 2022 14:34:35 +0000 (15:34 +0100)
tests/unserialize/stream.phpt [new file with mode: 0644]

diff --git a/tests/unserialize/stream.phpt b/tests/unserialize/stream.phpt
new file mode 100644 (file)
index 0000000..96a21bb
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+ion\unserialize/stream
+--EXTENSIONS--
+ion
+--FILE--
+TEST
+<?php
+$s = fopen("php://temp", "w+");
+fwrite($s, "123");
+rewind($s);
+var_dump(ion\unserialize($s));
+?>
+DONE
+--EXPECTF--
+TEST
+int(123)
+DONE