1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00
Files
archived-php-src/Zend/tests/bug78154.phpt
2019-06-13 10:59:01 +02:00

24 lines
461 B
PHP

--TEST--
Bug #78154: SEND_VAR_NO_REF does not always send reference
--FILE--
<?php
namespace {
var_dump(similar_text('a', 'a', $c=0x44444444));
var_dump($c);
}
namespace Foo {
var_dump(similar_text('a', 'a', $d=0x44444444));
var_dump($d);
}
?>
--EXPECTF--
Notice: Only variables should be passed by reference in %s on line %d
int(1)
int(1145324612)
Notice: Only variables should be passed by reference in %s on line %d
int(1)
int(1145324612)