mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
15 lines
202 B
PHP
15 lines
202 B
PHP
--TEST--
|
|
Attempt to pass a constant by reference
|
|
--FILE--
|
|
<?php
|
|
|
|
function f(&$arg1)
|
|
{
|
|
var_dump($arg1++);
|
|
}
|
|
|
|
f(2);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Only variables can be passed by reference in %s on line 8
|