xref: /PHP-7.4/Zend/tests/bug78154.phpt (revision cac6b041)
1--TEST--
2Bug #78154: SEND_VAR_NO_REF does not always send reference
3--FILE--
4<?php
5
6namespace {
7    var_dump(similar_text('a', 'a', $c=0x44444444));
8    var_dump($c);
9}
10namespace Foo {
11    var_dump(similar_text('a', 'a', $d=0x44444444));
12    var_dump($d);
13}
14
15?>
16--EXPECTF--
17Notice: Only variables should be passed by reference in %s on line %d
18int(1)
19int(1145324612)
20
21Notice: Only variables should be passed by reference in %s on line %d
22int(1)
23int(1145324612)
24