source: src/router/php7/Zend/tests/generators/generator_with_arg_unpacking.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 313 bytes
Line 
1--TEST--
2Generators with arguments unpacking
3--FILE--
4<?php
5(function() { yield; })(...range(1, 16384));
6call_user_func_array(function() { yield; }, range(1, 16384));
7$g = (function() { yield; })(...range(1, 16384));
8$g = call_user_func_array(function() { yield; }, range(1, 16384));
9echo "OK\n";
10?>
11--EXPECT--
12OK
Note: See TracBrowser for help on using the repository browser.