8000 start to address test changes · devnexen/php-src@f72d78c · GitHub
[go: up one dir, main page]

Skip to content

Commit f72d78c

Browse files
committed
start to address test changes
1 parent 120cf76 commit f72d78c

File tree

1 file changed

+41
-103
lines changed

1 file changed

+41
-103
lines changed

ext/sockets/tests/socket_afpacket.phpt

Lines changed: 41 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -236,75 +236,52 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
236236
bool(true)
237237
bool(true)
238238
string(2) "lo"
239-
int(%i)
239+
int(1)
240240

241-
Warning: socket_getpeername(): unable to retrieve peer name [95]: %sot supported in %s on line %d
241+
Warning: socket_getpeername(): unable to retrieve peer name [95]: Operation not supported in %s on line %d
242242
int(60)
243243
int(60)
244244
string(2) "lo"
245-
object(Socket\EthernetPacket)#3 (%d) {
246-
["headerSize"]=>
247-
int(%d)
248-
["rawPacket"]=>
249-
string(%d) "%r(.|\n)*?"%r
250-
["socket"]=>
251-
object(Socket)#1 (0) {
252-
}
253-
["ethProtocol"]=>
254-
int(%i)
255-
["srcMac"]=>
256-
string(%d) "%s:%s:%s:%s:%s:%s"
257-
["dstMac"]=>
258-
string(%d) "%s:%s:%s:%s:%s:%s"
259-
["payload"]=>
260-
%a
261-
}
262-
int(60)
263-
unsupported ethernet protocol
264-
int(60)
265-
int(%d)
266-
string(2) "lo"
267-
object(Socket\EthernetPacket)#2 (7) {
245+
object(Socket\EthernetPacket)#3 (7) {
268246
["headerSize"]=>
269247
int(14)
270248
["rawPacket"]=>
271249
string(%d) "%r(.|\n)*?"%r
272250
["socket"]=>
273-
object(Socket)#%d (0) {
251+
object(Socket)#1 (0) {
274252
}
275253
["ethProtocol"]=>
276-
int(%d)
254+
int(96)
277255
["srcMac"]=>
278-
string(%d) "%s:%s:%s:%s:%s:%s"
256+
string(11) "0:0:0:0:0:0"
279257
["dstMac"]=>
280-
string(%d) "%s:%s:%s:%s:%s:%s"
258+
string(17) "ff:ff:ff:ff:ff:ff"
281259
["payload"]=>
282-
object(Socket\Ipv%sPacket)#%d (5) {
260+
object(Socket\EthernetPacket)#4 (7) {
283261
["headerSize"]=>
284-
int(%d)
262+
int(14)
285263
["rawPacket"]=>
286264
string(%d) "%r(.|\n)*?"%r
287-
["srcAddr"]=>
288-
string(%d) "%s"
289-
["dstAddr"]=>
290-
string(%d) "%s"
291-
["payload"]=>
292-
object(Socket\%sPacket)#%d (4) {
293-
["headerSize"]=>
294-
int(%d)
295-
["rawPacket"]=>
296-
string(%d) "%r(.|\n)*?"%r
297-
["srcPort"]=>
298-
int(%d)
299-
["dstPort"]=>
300-
int(%d)
265+
["socket"]=>
266+
object(Socket)#1 (0) {
301267
}
268+
["ethProtocol"]=>
269+
int(0)
270+
["srcMac"]=>
271+
string(17) "41:41:41:41:41:41"
272+
["dstMac"]=>
273+
string(17) "41:41:41:41:41:41"
274+
["payload"]=>
275+
NULL
302276
}
303277
}
304-
int(%d)
305-
int(%d)
278+
int(60)
279+
unsupported ethernet protocol
280+
int(60)
281+
int(72)
282+
int(72)
306283
string(2) "lo"
307-
object(Socket\EthernetPacket)#%d (7) {
284+
object(Socket\EthernetPacket)#8 (7) {
308285
["headerSize"]=>
309286
int(14)
310287
["rawPacket"]=>
@@ -313,75 +290,36 @@ object(Socket\EthernetPacket)#%d (7) {
313290
object(Socket)#3 (0) {
314291
}
315292
["ethProtocol"]=>
316-
int(%d)
293+
int(34525)
317294
["srcMac"]=>
318-
string(%d) "%s:%s:%s:%s:%s:%s"
295+
string(11) "0:0:0:0:0:0"
319296
["dstMac"]=>
320-
string(%d) "%s:%s:%s:%s:%s:%s"
297+
string(17) "ff:ff:ff:ff:ff:ff"
321298
["payload"]=>
322-
object(Socket\Ipv6Packet)#%d (5) {
299+
object(Socket\Ipv6Packet)#1 (5) {
323300
["headerSize"]=>
324-
int(%d)
301+
int(5160)
325302
["rawPacket"]=>
326-
string(%d) "%A"
303+
string(%d) "%r(.|\n)*?"%r
327304
["srcAddr"]=>
328-
string(%d) "%s"
305+
string(3) "::1"
329306
["dstAddr"]=>
330-
string(%d) "%s"
307+
string(3) "::1"
331308
["payload"]=>
332-
object(Socket\TcpPacket)#%d (4) {
309+
object(Socket\TcpPacket)#11 (4) {
333310
["headerSize"]=>
334-
int(%d)
311+
int(20)
335312
["rawPacket"]=>
336313
string(%d) "%r(.|\n)*?"%r
337314
["srcPort"]=>
338-
int(%d)
315+
int(0)
339316
["dstPort"]=>
340-
int(%d)
317+
int(0)
341318
}
342319
}
343320
}
344-
int(%d)
321+
int(74)
345322
unsupported ipv6 header protocol
346-
int(%d)
347-
%A
348-
int(%d)
349-
%A
350-
string(%d) "%s"
351-
object(Socket\EthernetPacket)#%d (7) {
352-
["headerSize"]=>
353-
int(%d)
354-
["rawPacket"]=>
355-
string(%d) "%r(.|\n)*?"%r
356-
["socket"]=>
357-
object(Socket)#%d (0) {
358-
}
359-
["ethProtocol"]=>
360-
int(2048)
361-
["srcMac"]=>
362-
string(%d) "%s"
363-
["dstMac"]=>
364-
string(%d) "%s"
365-
["payload"]=>
366-
object(Socket\Ipv4Packet)#%d (5) {
367-
["headerSize"]=>
368-
int(%d)
369-
["rawPacket"]=>
370-
string(%d) "%s"
371-
["srcAddr"]=>
372-
string(%d) "%s.%s.%s.%s"
373-
["dstAddr"]=>
374-
string(%d) "%s.%s.%s.%s"
375-
["payload"]=>
376-
object(Socket\TcpPacket)#%d (4) {
377-
["headerSize"]=>
378-
int(%d)
379-
["rawPacket"]=>
380-
string(%d) "%r(.|\n)*?"%r
381-
["srcPort"]=>
382-
int(%d)
383-
["dstPort"]=>
384-
int(%d)
385-
}
386-
}
387-
}
323+
int(84)
324+
unsupported ip header protocol
325+
int(194)

0 commit comments

Comments
 (0)
0