~ubuntu-branches/ubuntu/raring/php5/raring

« back to all changes in this revision

Viewing changes to Zend/tests/binary-32bit.phpt

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-18 16:10:26 UTC
  • mfrom: (1.1.24) (0.3.58 sid)
  • Revision ID: package-import@ubuntu.com-20120618161026-hg1fc5r9z1a4hlqz
Tags: 5.4.4-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - d/rules: Simplify apache config settings since we never build 
    interbase or firebird.
  - debian/rules: export DEB_HOST_MULTIARCH properly.
  - Add build-dependency on lemon, which we now need.
  - Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
  - Dropped libcurl-dev not in the archive.
  - debian/control: replace build-depends on mysql-server with
    mysql-server-core-5.5 and mysql-client-5.5 to avoid upstart and
    mysql-server-5.5 postinst confusion with starting up multiple
    mysqlds listening on the same port.
  - Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions
    already in universe.
  - Dropped libonig-dev and libqgdbm since its in universe. (libonig MIR
    has been declined due to an inactive upstream. So this is probably
    a permanent change).
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests
* Dropped Changes:
  * d/rules: enable Suhosin patch with PHP5_SUHOSIN=yes -- Upstream suhosin
    has been slow to adopt PHP 5.4, and is showing signs of disengagement.
    Therefore, we will follow Debian's lead and drop Suhosin for now.
  - d/control: build-depend on mysql 5.5 instead of 5.1 for running tests.
    -- Debian just deps on mysql-server
  - Suggest php5-suhosin rather than recommends. -- Dropping suhosin
  - d/setup-mysql.sh: modify to work with mysql 5.5 differences -- superseded
    in Debian.
  - Only build php5-sqlite for sqlite3, dropping the obsolete sqlite2. --
    superseded in Debian
  - d/maxlifetime: Improve maxlifetime script to scan for more SAPIs and 
    scan all *.ini in conf.d directory. -- Change came from Debian
  - d/libapache2-mod-php5.postinst,libapache2-mod-php5filter.postinst: 
    Restart apache on first install to ensure module is fully enabled.
    -- Change came from Debian
  - debian/patches/php5-CVE-2012-1823.patch: filter query strings that
    are prefixed with '-' -- Fixed upstream
  - debian/control: Recommend php5-dev for php-pear. -- This was a poorly
    conceived idea anyway.
  - Pre-Depend on a new enough version of dpkg for dpkg-maintscript-helper
    rather than checking whether it exists at run-time, leading to more
    predictable behaviour on upgrades. -- Applied in Debian
  - d/p/gd-multiarch-fix.patch: superseded
* d/NEWS: add note explaining that SUHOSIN is no longer enabled in the
  Ubuntu packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
testing binary literals
 
3
--INI--
 
4
precision=14
 
5
--SKIPIF--
 
6
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
 
7
--FILE--
 
8
<?php
 
9
var_dump(0b1);
 
10
var_dump(0b11);
 
11
var_dump(0b111);
 
12
var_dump(0b1111);
 
13
var_dump(0b11111);
 
14
var_dump(0b111111);
 
15
var_dump(0b1111111);
 
16
var_dump(0b11111111);
 
17
var_dump(0b111111111);
 
18
var_dump(0b1111111111);
 
19
var_dump(0b11111111111);
 
20
var_dump(0b111111111111);
 
21
var_dump(0b1111111111111);
 
22
var_dump(0b11111111111111);
 
23
var_dump(0b111111111111111);
 
24
var_dump(0b1111111111111111);
 
25
var_dump(0b11111111111111111);
 
26
var_dump(0b111111111111111111);
 
27
var_dump(0b1111111111111111111);
 
28
var_dump(0b11111111111111111111);
 
29
var_dump(0b111111111111111111111);
 
30
var_dump(0b1111111111111111111111);
 
31
var_dump(0b11111111111111111111111);
 
32
var_dump(0b111111111111111111111111);
 
33
var_dump(0b1111111111111111111111111);
 
34
var_dump(0b11111111111111111111111111);
 
35
var_dump(0b111111111111111111111111111);
 
36
var_dump(0b1111111111111111111111111111);
 
37
var_dump(0b11111111111111111111111111111);
 
38
var_dump(0b111111111111111111111111111111);
 
39
var_dump(0b1111111111111111111111111111111);
 
40
var_dump(0b11111111111111111111111111111111);
 
41
var_dump(0b111111111111111111111111111111111);
 
42
var_dump(0b1111111111111111111111111111111111);
 
43
var_dump(0b11111111111111111111111111111111111);
 
44
var_dump(0b111111111111111111111111111111111111);
 
45
var_dump(0b1111111111111111111111111111111111111);
 
46
var_dump(0b11111111111111111111111111111111111111);
 
47
var_dump(0b111111111111111111111111111111111111111);
 
48
var_dump(0b1111111111111111111111111111111111111111);
 
49
var_dump(0b11111111111111111111111111111111111111111);
 
50
var_dump(0b111111111111111111111111111111111111111111);
 
51
var_dump(0b1111111111111111111111111111111111111111111);
 
52
var_dump(0b11111111111111111111111111111111111111111111);
 
53
var_dump(0b111111111111111111111111111111111111111111111);
 
54
var_dump(0b1111111111111111111111111111111111111111111111);
 
55
var_dump(0b11111111111111111111111111111111111111111111111);
 
56
var_dump(0b111111111111111111111111111111111111111111111111);
 
57
var_dump(0b1111111111111111111111111111111111111111111111111);
 
58
var_dump(0b11111111111111111111111111111111111111111111111111);
 
59
var_dump(0b111111111111111111111111111111111111111111111111111);
 
60
var_dump(0b1111111111111111111111111111111111111111111111111111);
 
61
var_dump(0b11111111111111111111111111111111111111111111111111111);
 
62
var_dump(0b111111111111111111111111111111111111111111111111111111);
 
63
var_dump(0b1111111111111111111111111111111111111111111111111111111);
 
64
var_dump(0b11111111111111111111111111111111111111111111111111111111);
 
65
var_dump(0b111111111111111111111111111111111111111111111111111111111);
 
66
var_dump(0b1111111111111111111111111111111111111111111111111111111111);
 
67
var_dump(0b11111111111111111111111111111111111111111111111111111111111);
 
68
var_dump(0b111111111111111111111111111111111111111111111111111111111111);
 
69
var_dump(0b1111111111111111111111111111111111111111111111111111111111111);
 
70
var_dump(0b11111111111111111111111111111111111111111111111111111111111111);
 
71
var_dump(0b111111111111111111111111111111111111111111111111111111111111111);
 
72
var_dump(0b1111111111111111111111111111111111111111111111111111111111111111);
 
73
 
 
74
var_dump(-0b1111111111111111111111111111111111111111111111111111111111111111);
 
75
var_dump(-0b111111111111111111111111111111111111111111111111111111111111111);
 
76
var_dump(-0b11111111111111111111111111111111111111111111111111111111111111);
 
77
var_dump(-0b111111111111111111111111111111111);
 
78
var_dump(-0b11111111111111111111111111111111);
 
79
var_dump(-0b1111111111111111111111111111111);
 
80
var_dump(-0b111111111111111111111111111111);
 
81
var_dump(-0b1);
 
82
--EXPECT--
 
83
int(1)
 
84
int(3)
 
85
int(7)
 
86
int(15)
 
87
int(31)
 
88
int(63)
 
89
int(127)
 
90
int(255)
 
91
int(511)
 
92
int(1023)
 
93
int(2047)
 
94
int(4095)
 
95
int(8191)
 
96
int(16383)
 
97
int(32767)
 
98
int(65535)
 
99
int(131071)
 
100
int(262143)
 
101
int(524287)
 
102
int(1048575)
 
103
int(2097151)
 
104
int(4194303)
 
105
int(8388607)
 
106
int(16777215)
 
107
int(33554431)
 
108
int(67108863)
 
109
int(134217727)
 
110
int(268435455)
 
111
int(536870911)
 
112
int(1073741823)
 
113
int(2147483647)
 
114
float(4294967295)
 
115
float(8589934591)
 
116
float(17179869183)
 
117
float(34359738367)
 
118
float(68719476735)
 
119
float(137438953471)
 
120
float(274877906943)
 
121
float(549755813887)
 
122
float(1099511627775)
 
123
float(2199023255551)
 
124
float(4398046511103)
 
125
float(8796093022207)
 
126
float(17592186044415)
 
127
float(35184372088831)
 
128
float(70368744177663)
 
129
float(1.4073748835533E+14)
 
130
float(2.8147497671066E+14)
 
131
float(5.6294995342131E+14)
 
132
float(1.1258999068426E+15)
 
133
float(2.2517998136852E+15)
 
134
float(4.5035996273705E+15)
 
135
float(9.007199254741E+15)
 
136
float(1.8014398509482E+16)
 
137
float(3.6028797018964E+16)
 
138
float(7.2057594037928E+16)
 
139
float(1.4411518807586E+17)
 
140
float(2.8823037615171E+17)
 
141
float(5.7646075230342E+17)
 
142
float(1.1529215046068E+18)
 
143
float(2.3058430092137E+18)
 
144
float(4.6116860184274E+18)
 
145
float(9.2233720368548E+18)
 
146
float(1.844674407371E+19)
 
147
float(-1.844674407371E+19)
 
148
float(-9.2233720368548E+18)
 
149
float(-4.6116860184274E+18)
 
150
float(-8589934591)
 
151
float(-4294967295)
 
152
int(-2147483647)
 
153
int(-1073741823)
 
154
int(-1)