mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
20 lines
407 B
Plaintext
20 lines
407 B
Plaintext
|
--TEST--
|
||
|
Don't optimize send opcodes that differ in by-ref behavior
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
call_user_func('ref', function_exists('strlen'));
|
||
|
ref(function_exists('strlen'));
|
||
|
|
||
|
function ref(&$x) {
|
||
|
var_dump($x);
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: ref(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
|
||
|
bool(true)
|
||
|
|
||
|
Notice: Only variables should be passed by reference in %s on line %d
|
||
|
bool(true)
|