Annotation of embedaddon/php/ext/standard/tests/file/stream_rfc2397_001.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Stream: RFC2397 getting the data
                      3: --INI--
                      4: allow_url_fopen=1
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $data = 'data://,hello world';
                      9: 
                     10: var_dump(file_get_contents($data));
                     11: 
                     12: $file = fopen($data, 'r');
                     13: unset($data);
                     14: 
                     15: var_dump(stream_get_contents($file));
                     16: 
                     17: ?>
                     18: ===DONE===
                     19: --EXPECT--
                     20: string(11) "hello world"
                     21: string(11) "hello world"
                     22: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>