xref: /PHP-8.1/Zend/tests/return_ref_none.phpt (revision 08e6c209)
1--TEST--
2Argument-less return from by-ref function
3--FILE--
4<?php
5
6function &test() {
7    return;
8}
9
10$ref =& test();
11
12?>
13--EXPECTF--
14Notice: Only variable references should be returned by reference in %s on line %d
15