]> git.pld-linux.org Git - packages/php.git/blame - bug-52078-fileinode.patch
up to php-7.2.0RC6, likely last RC
[packages/php.git] / bug-52078-fileinode.patch
CommitLineData
c0240cb1 1--- php-5.3.3/ext/standard/tests/file/fileinode_basic.phpt~ 2007-11-05 19:43:21.000000000 +0200
2+++ php-5.3.3/ext/standard/tests/file/fileinode_basic.phpt 2010-07-26 19:31:43.613553760 +0300
3@@ -28,9 +28,9 @@
4 ?>
5 --EXPECTF--
6 *** Testing fileinode() with file, directory ***
7-%d
8-%d
9-%d
10-%d
11+%i
12+%i
13+%i
14+%i
15
16 *** Done ***
17--- php-5.3.3/ext/standard/tests/file/fileinode_variation.phpt~ 2007-11-05 19:43:21.000000000 +0200
18+++ php-5.3.3/ext/standard/tests/file/fileinode_variation.phpt 2010-07-26 19:34:01.610414378 +0300
19@@ -89,24 +89,24 @@
20 --EXPECTF--
21 *** Testing fileinode() with files, links and directories ***
22 -- Testing with files --
23-%d
24-%d
25+%i
26+%i
27 -- Testing with links: hard link --
28-%d
29-%d
30+%i
31+%i
32 -- Testing with links: soft link --
33-%d
34-%d
35+%i
36+%i
37 -- Testing after copying a file --
38-%d
39-%d
40+%i
41+%i
42 -- Testing after renaming the file --
43-%d
44-%d
45+%i
46+%i
47 -- Testing with directories --
48-%d
49-%d
50+%i
51+%i
52 -- Testing with binary input --
53-%d
54-%d
55+%i
56+%i
57 *** Done ***
58--- php-5.3.3/ext/standard/tests/file/fileinode_variation1.phpt~ 2008-11-26 12:10:19.000000000 +0200
59+++ php-5.3.3/ext/standard/tests/file/fileinode_variation1.phpt 2010-07-26 19:35:31.216291870 +0300
60@@ -42,7 +42,7 @@
61
62 --EXPECTF--
63 *** Testing fileinode() with links ***
64-int(%d)
65-int(%d)
66+int(%i)
67+int(%i)
68
69 *** Done ***
70--- php-5.3.3/ext/standard/tests/file/filestat.phpt~ 2006-11-15 19:27:03.000000000 +0200
71+++ php-5.3.3/ext/standard/tests/file/filestat.phpt 2010-07-26 19:37:10.367060798 +0300
72@@ -30,17 +30,17 @@
73 echo "Done\n";
74 ?>
75 --EXPECTF--
76+int(%i)
77 int(%d)
78 int(%d)
79 int(%d)
80 int(%d)
81+int(%i)
82 int(%d)
83 int(%d)
84 int(%d)
85 int(%d)
86-int(%d)
87-int(%d)
88-int(%d)
89+int(%i)
90 int(%d)
91 int(%d)
92 int(%d)
93--- php-5.3.3/ext/standard/tests/file/lstat_stat_variation18.phpt~ 2010-07-26 19:43:12.000000000 +0300
94+++ php-5.3.3/ext/standard/tests/file/lstat_stat_variation18.phpt 2010-07-26 19:43:14.470984630 +0300
95@@ -66,7 +66,7 @@
96 [0]=>
97 int(%d)
98 [1]=>
99- int(%d)
100+ int(%i)
101 [2]=>
102 int(%d)
103 [3]=>
104@@ -92,7 +92,7 @@
105 ["dev"]=>
106 int(%d)
107 ["ino"]=>
108- int(%d)
109+ int(%i)
110 ["mode"]=>
111 int(%d)
112 ["nlink"]=>
113@@ -122,7 +122,7 @@
114 [0]=>
115 int(%d)
116 [1]=>
117- int(%d)
118+ int(%i)
119 [2]=>
120 int(%d)
121 [3]=>
122@@ -148,7 +148,7 @@
123 ["dev"]=>
124 int(%d)
125 ["ino"]=>
126- int(%d)
127+ int(%i)
128 ["mode"]=>
129 int(%d)
130 ["nlink"]=>
131--- php-5.3.3/ext/standard/tests/file/lstat_stat_variation19.phpt~ 2007-11-05 19:43:21.000000000 +0200
132+++ php-5.3.3/ext/standard/tests/file/lstat_stat_variation19.phpt 2010-07-26 19:44:58.320079730 +0300
133@@ -67,7 +67,7 @@
134 [0]=>
135 int(%d)
136 [1]=>
137- int(%d)
138+ int(%i)
139 [2]=>
140 int(%d)
141 [3]=>
142@@ -93,7 +93,7 @@
143 ["dev"]=>
144 int(%d)
145 ["ino"]=>
146- int(%d)
147+ int(%i)
148 ["mode"]=>
149 int(%d)
150 ["nlink"]=>
151@@ -121,7 +121,7 @@
152 [0]=>
153 int(%d)
154 [1]=>
155- int(%d)
156+ int(%i)
157 [2]=>
158 int(%d)
159 [3]=>
160@@ -147,7 +147,7 @@
161 ["dev"]=>
162 int(%d)
163 ["ino"]=>
164- int(%d)
165+ int(%i)
166 ["mode"]=>
167 int(%d)
168 ["nlink"]=>
169@@ -177,7 +177,7 @@
170 [0]=>
171 int(%d)
172 [1]=>
173- int(%d)
174+ int(%i)
175 [2]=>
176 int(%d)
177 [3]=>
178@@ -203,7 +203,7 @@
179 ["dev"]=>
180 int(%d)
181 ["ino"]=>
182- int(%d)
183+ int(%i)
184 ["mode"]=>
185 int(%d)
186 ["nlink"]=>
187@@ -231,7 +231,7 @@
188 [0]=>
189 int(%d)
190 [1]=>
191- int(%d)
192+ int(%i)
193 [2]=>
194 int(%d)
195 [3]=>
196@@ -257,7 +257,7 @@
197 ["dev"]=>
198 int(%d)
199 ["ino"]=>
200- int(%d)
201+ int(%i)
202 ["mode"]=>
203 int(%d)
204 ["nlink"]=>
205--- php-5.3.3/ext/standard/tests/file/lstat_stat_variation20.phpt~ 2007-07-26 16:38:24.000000000 +0300
206+++ php-5.3.3/ext/standard/tests/file/lstat_stat_variation20.phpt 2010-07-26 19:46:33.907004377 +0300
207@@ -69,7 +69,7 @@
208 [0]=>
209 int(%d)
210 [1]=>
211- int(%d)
212+ int(%i)
213 [2]=>
214 int(%d)
215 [3]=>
216@@ -95,7 +95,7 @@
217 ["dev"]=>
218 int(%d)
219 ["ino"]=>
220- int(%d)
221+ int(%i)
222 ["mode"]=>
223 int(%d)
224 ["nlink"]=>
225@@ -125,7 +125,7 @@
226 [0]=>
227 int(%d)
228 [1]=>
229- int(%d)
230+ int(%i)
231 [2]=>
232 int(%d)
233 [3]=>
234@@ -151,7 +151,7 @@
235 ["dev"]=>
236 int(%d)
237 ["ino"]=>
238- int(%d)
239+ int(%i)
240 ["mode"]=>
241 int(%d)
242 ["nlink"]=>
243@@ -179,7 +179,7 @@
244 [0]=>
245 int(%d)
246 [1]=>
247- int(%d)
248+ int(%i)
249 [2]=>
250 int(%d)
251 [3]=>
252@@ -205,7 +205,7 @@
253 ["dev"]=>
254 int(%d)
255 ["ino"]=>
256- int(%d)
257+ int(%i)
258 ["mode"]=>
259 int(%d)
260 ["nlink"]=>
261@@ -233,7 +233,7 @@
262 [0]=>
263 int(%d)
264 [1]=>
265- int(%d)
266+ int(%i)
267 [2]=>
268 int(%d)
269 [3]=>
270@@ -259,7 +259,7 @@
271 ["dev"]=>
272 int(%d)
273 ["ino"]=>
274- int(%d)
275+ int(%i)
276 ["mode"]=>
277 int(%d)
278 ["nlink"]=>
279--- php-5.3.3/ext/standard/tests/file/tempnam_variation1.phpt~ 2008-11-26 12:10:19.000000000 +0200
280+++ php-5.3.3/ext/standard/tests/file/tempnam_variation1.phpt 2010-07-26 20:24:46.505943227 +0300
281@@ -66,51 +66,51 @@
282 -- Iteration 1 --
283 File name is => %s%etempnam_variation1.tmp%s
284 File permissions are => 100600
285-File inode is => %d
286+File inode is => %i
287 File created in => directory specified
288 -- Iteration 2 --
289 File name is => %s%etempnam_variation1.tmp%s
290 File permissions are => 100600
291-File inode is => %d
292+File inode is => %i
293 File created in => directory specified
294 -- Iteration 3 --
295 File name is => %s%etempnam_variation1.tmp%s
296 File permissions are => 100600
297-File inode is => %d
298+File inode is => %i
299 File created in => directory specified
300 -- Iteration 4 --
301 File name is => %s%etempnam_variation1.tmp%s
302 File permissions are => 100600
303-File inode is => %d
304+File inode is => %i
305 File created in => directory specified
306 -- Iteration 5 --
307 File name is => %s%etempnam_variation1.tmp%s
308 File permissions are => 100600
309-File inode is => %d
310+File inode is => %i
311 File created in => directory specified
312 -- Iteration 6 --
313 File name is => %s%etempnam_variation1.tmp%s
314 File permissions are => 100600
315-File inode is => %d
316+File inode is => %i
317 File created in => directory specified
318 -- Iteration 7 --
319 File name is => %s%etempnam_variation1.tmp%s
320 File permissions are => 100600
321-File inode is => %d
322+File inode is => %i
323 File created in => directory specified
324 -- Iteration 8 --
325 File name is => %s%etempnam_variation1.tmp%s
326 File permissions are => 100600
327-File inode is => %d
328+File inode is => %i
329 File created in => directory specified
330 -- Iteration 9 --
331 File name is => %s%etempnam_variation1.tmp%s
332 File permissions are => 100600
333-File inode is => %d
334+File inode is => %i
335 File created in => directory specified
336 -- Iteration 10 --
337 File name is => %s%etempnam_variation1.tmp%s
338 File permissions are => 100600
339-File inode is => %d
340+File inode is => %i
341 File created in => directory specified
342 *** Done ***
343--- php-5.3.3/tests/security/open_basedir_fileinode.phpt~ 2008-05-09 11:39:44.000000000 +0300
344+++ php-5.3.3/tests/security/open_basedir_fileinode.phpt 2010-07-27 22:51:29.603089549 +0300
345@@ -46,10 +46,10 @@
346
347 Warning: fileinode(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
348 bool(false)
349-int(%d)
350-int(%d)
351-int(%d)
352-int(%d)
353-int(%d)
354+int(%i)
355+int(%i)
356+int(%i)
357+int(%i)
358+int(%i)
359 *** Finished testing open_basedir configuration [fileinode] ***
360
361--- php-5.3.3/ext/spl/tests/SplFileInfo_getInode_basic.phpt~ 2010-08-04 16:25:21.000000000 +0300
362+++ php-5.3.3/ext/spl/tests/SplFileInfo_getInode_basic.phpt 2010-08-04 16:28:32.722932851 +0300
363@@ -11,6 +11,7 @@
364 --SKIPIF--
365 <?php
366 if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test not for Windows platforms");
367+if (PHP_INT_SIZE == 4) die("skip this test is for >32bit platform only (inodes overflow there)");
368 ?>
369 --FILE--
370 <?php
This page took 0.143805 seconds and 4 git commands to generate.