From: Derick Rethans Date: Thu, 14 Nov 2002 10:56:35 +0000 (+0000) Subject: - MFB: Fixed bug #20484 (stream_get_meta_data crashes on a normal file X-Git-Tag: BEFORE_RENAMING~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bab4957d1c6696e62b45293b3608e0851fc20931;p=php - MFB: Fixed bug #20484 (stream_get_meta_data crashes on a normal file stream). (Derick, Wez) --- diff --git a/NEWS b/NEWS index 8176553e04..0fa38d1c0e 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ? ? ??? 200?, Version 4.4.0 +- Fixed bug #20424 (stream_get_meta_data craches on a normal file stream). + (Derick, Wez) - Added imagefilter() function which allows application of various filters. This function is only available with bundled GD. (Pierre-Alain Joye, Ilia) diff --git a/ext/standard/tests/file/bug20424.phpt b/ext/standard/tests/file/bug20424.phpt new file mode 100644 index 0000000000..0352d46f8e --- /dev/null +++ b/ext/standard/tests/file/bug20424.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #20424: stream_get_meta_data craches on a normal file stream +--POST-- +--GET-- +--FILE-- + +--EXPECT-- +I'm alive! diff --git a/main/streams.c b/main/streams.c index 1a27c7c4db..f6190498c4 100755 --- a/main/streams.c +++ b/main/streams.c @@ -2029,7 +2029,8 @@ static php_stream_wrapper_ops php_plain_files_wrapper_ops = { NULL, NULL, php_plain_files_url_stater, - php_plain_files_dir_opener + php_plain_files_dir_opener, + "plainfile" }; static php_stream_wrapper php_plain_files_wrapper = {