xref: /PHP-7.3/Zend/tests/bug70398.phpt (revision d5b78cec)
1--TEST--
2Bug #70398 (SIGSEGV, Segmentation fault zend_ast_destroy_ex)
3--FILE--
4<?php
5
6define("FILE_STREAM", fopen("php://temp", "r"));
7
8define("FILE_STREAMS", array(fopen("php://temp", "r")));
9
10var_dump(FILE_STREAM);
11var_dump(FILE_STREAMS);
12?>
13--EXPECTF--
14resource(%d) of type (stream)
15array(1) {
16  [0]=>
17  resource(%d) of type (stream)
18}
19