Annotation of embedaddon/php/ext/standard/tests/strings/bug61764.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #61764: 'I' unpacks n as signed if n > 2^31-1 on LP64
                      3: --SKIPIF--
                      4: <?php
                      5: if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
                      6: --FILE--
                      7: <?php
                      8: //expected -30000 mod 2^32 = 4294937296, and not -30000
                      9: //because we can represent 4294937296 with our PHP int type
                     10: print_r(unpack('I', pack('L', -30000)));
                     11: --EXPECT--
                     12: Array
                     13: (
                     14:     [1] => 4294937296
                     15: )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>