diff options
author | Christoph M. Becker <cmb@php.net> | 2015-08-09 14:48:17 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2015-08-09 15:01:37 +0200 |
commit | 79f64e5e673e15c1512eebfd9ce2df719b4a3036 (patch) | |
tree | a7074e6b5b50b64410ecc72edea57bfc25af0d72 /Zend/tests/bug70173.phpt | |
parent | 64a51893585e00e69f5de4520ac6209363f9c6ff (diff) | |
download | php-git-79f64e5e673e15c1512eebfd9ce2df719b4a3036.tar.gz |
Fix #70173: ZVAL_COPY_VALUE_EX broken for 32bit Solaris Sparc
On 32bit big endian architectures the high word of a zend_value is copied
twice, instead of copying both words. Let's fix it.
Diffstat (limited to 'Zend/tests/bug70173.phpt')
-rw-r--r-- | Zend/tests/bug70173.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/bug70173.phpt b/Zend/tests/bug70173.phpt new file mode 100644 index 0000000000..767973449a --- /dev/null +++ b/Zend/tests/bug70173.phpt @@ -0,0 +1,13 @@ +--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) |