mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
79f64e5e67
On 32bit big endian architectures the high word of a zend_value is copied twice, instead of copying both words. Let's fix it.
14 lines
248 B
PHP
14 lines
248 B
PHP
--TEST--
|
|
Bug #70173 (ZVAL_COPY_VALUE_EX broken for 32bit Solaris Sparc)
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$var = 2900000000;
|
|
var_dump($var);
|
|
?>
|
|
--EXPECT--
|
|
float(2900000000)
|