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

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

update php

File size: 403 bytes
Line 
1--TEST--
2call_user_func() behavior when passing literal to reference parameter
3--FILE--
4<?php
5
6namespace Foo;
7
8var_dump(call_user_func('sort', []));
9var_dump(\call_user_func('sort', []));
10
11?>
12--EXPECTF--
13Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
14bool(true)
15
16Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
17bool(true)
Note: See TracBrowser for help on using the repository browser.