summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug20424.phpt
blob: b8f9dfd8f59ad4deda1e94da2d9a1eb4390463c7 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #20424 (stream_get_meta_data crashes on a normal file stream)
--FILE--
<?php
$f = fopen(__FILE__, "r");
$dummy = var_export(stream_get_meta_data($f), TRUE);
echo "I'm alive!\n";
?>
--EXPECT--
I'm alive!