mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
2622cfc2fb
Currently we do not support IS_REFERENCE operands for most of our *_function's (should we?), so we need to deref here.
15 lines
159 B
PHP
15 lines
159 B
PHP
--TEST--
|
|
Bitwise or assign with referenced value
|
|
--FILE--
|
|
<?php
|
|
|
|
$num1 = 1;
|
|
$num2 = '2';
|
|
$ref =& $num2;
|
|
$num1 |= $num2;
|
|
var_dump($num1);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(3)
|