From: SVN Migration Date: Thu, 14 Nov 2002 12:20:37 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.0RC1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8bb6a9ecaab6977abf5f13ea203f85236431aca;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/file/fopencookie.phpt b/ext/standard/tests/file/fopencookie.phpt new file mode 100644 index 0000000000..7fc9dd79e9 --- /dev/null +++ b/ext/standard/tests/file/fopencookie.phpt @@ -0,0 +1,50 @@ +--TEST-- +fopencookie detected and working (or cast mechanism works) +--FILE-- +data, $this->position, $count); + $this->position += strlen($ret); + return $ret; + } + + function stream_tell() + { + return $this->position; + } + + function stream_eof() + { + return $this->position >= strlen($this->data); + } +} + +stream_register_wrapper("cookietest", "userstream"); + +include("cookietest://foo"); + +?> +--EXPECT-- +If you can read this, it worked