mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

Currently we do not support IS_REFERENCE operands for most of our *_function's (should we?), so we need to deref here.
14 lines
159 B
PHP
14 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)
|