ofs | hex dump | ascii |
---|
0000 | 2d 2d 54 45 53 54 2d 2d 0a 54 65 73 74 20 66 70 72 69 6e 74 66 28 29 20 66 75 6e 63 74 69 6f 6e | --TEST--.Test.fprintf().function |
0020 | 20 28 76 61 72 69 61 74 69 6f 6e 20 2d 20 34 29 0a 2d 2d 53 4b 49 50 49 46 2d 2d 0a 3c 3f 70 68 | .(variation.-.4).--SKIPIF--.<?ph |
0040 | 70 0a 24 64 61 74 61 5f 66 69 6c 65 20 3d 20 64 69 72 6e 61 6d 65 28 5f 5f 46 49 4c 45 5f 5f 29 | p.$data_file.=.dirname(__FILE__) |
0060 | 20 2e 20 27 2f 64 75 6d 70 2e 74 78 74 27 3b 0a 69 66 20 28 21 28 24 66 70 20 3d 20 66 6f 70 65 | ...'/dump.txt';.if.(!($fp.=.fope |
0080 | 6e 28 24 64 61 74 61 5f 66 69 6c 65 2c 20 27 77 27 29 29 29 20 7b 0a 20 20 64 69 65 28 27 73 6b | n($data_file,.'w'))).{...die('sk |
00a0 | 69 70 20 46 69 6c 65 20 64 75 6d 70 2e 74 78 74 20 63 6f 75 6c 64 20 6e 6f 74 20 62 65 20 63 72 | ip.File.dump.txt.could.not.be.cr |
00c0 | 65 61 74 65 64 27 29 3b 0a 7d 0a 3f 3e 0a 2d 2d 46 49 4c 45 2d 2d 0a 3c 3f 70 68 70 0a 0a 24 63 | eated');.}.?>.--FILE--.<?php..$c |
00e0 | 68 61 72 5f 76 61 72 69 61 74 69 6f 6e 20 3d 20 61 72 72 61 79 28 20 27 61 27 2c 20 22 61 22 2c | har_variation.=.array(.'a',."a", |
0100 | 20 36 37 2c 20 2d 36 37 2c 20 39 39 20 29 3b 0a 0a 2f 2a 20 63 72 65 61 74 69 6e 67 20 64 75 6d | .67,.-67,.99.);../*.creating.dum |
0120 | 70 69 6e 67 20 66 69 6c 65 20 2a 2f 0a 24 64 61 74 61 5f 66 69 6c 65 20 3d 20 64 69 72 6e 61 6d | ping.file.*/.$data_file.=.dirnam |
0140 | 65 28 5f 5f 46 49 4c 45 5f 5f 29 20 2e 20 27 2f 64 75 6d 70 2e 74 78 74 27 3b 0a 69 66 20 28 21 | e(__FILE__)...'/dump.txt';.if.(! |
0160 | 28 24 66 70 20 3d 20 66 6f 70 65 6e 28 24 64 61 74 61 5f 66 69 6c 65 2c 20 27 77 74 27 29 29 29 | ($fp.=.fopen($data_file,.'wt'))) |
0180 | 0a 20 20 20 72 65 74 75 72 6e 3b 0a 0a 2f 2a 20 63 68 61 72 20 74 79 70 65 20 76 61 72 69 61 74 | ....return;../*.char.type.variat |
01a0 | 69 6f 6e 73 20 2a 2f 0a 66 70 72 69 6e 74 66 28 24 66 70 2c 20 22 5c 6e 2a 2a 2a 20 54 65 73 74 | ions.*/.fprintf($fp,."\n***.Test |
01c0 | 69 6e 67 20 66 70 72 69 6e 74 66 28 29 20 66 6f 72 20 63 68 61 72 73 20 2a 2a 2a 5c 6e 22 29 3b | ing.fprintf().for.chars.***\n"); |
01e0 | 0a 66 6f 72 65 61 63 68 28 20 24 63 68 61 72 5f 76 61 72 69 61 74 69 6f 6e 20 61 73 20 24 63 68 | .foreach(.$char_variation.as.$ch |
0200 | 61 72 20 29 20 7b 0a 20 20 66 70 72 69 6e 74 66 28 20 24 66 70 2c 20 22 5c 6e 22 29 3b 0a 20 20 | ar.).{...fprintf(.$fp,."\n");... |
0220 | 66 70 72 69 6e 74 66 28 20 24 66 70 2c 22 25 63 22 2c 20 24 63 68 61 72 20 29 3b 0a 7d 0a 0a 66 | fprintf(.$fp,"%c",.$char.);.}..f |
0240 | 63 6c 6f 73 65 28 24 66 70 29 3b 0a 0a 70 72 69 6e 74 5f 72 28 66 69 6c 65 5f 67 65 74 5f 63 6f | close($fp);..print_r(file_get_co |
0260 | 6e 74 65 6e 74 73 28 24 64 61 74 61 5f 66 69 6c 65 29 29 3b 0a 65 63 68 6f 20 22 5c 6e 44 6f 6e | ntents($data_file));.echo."\nDon |
0280 | 65 22 3b 0a 0a 75 6e 6c 69 6e 6b 28 24 64 61 74 61 5f 66 69 6c 65 29 3b 0a 0a 3f 3e 0a 2d 2d 45 | e";..unlink($data_file);..?>.--E |
02a0 | 58 50 45 43 54 46 2d 2d 0a 2a 2a 2a 20 54 65 73 74 69 6e 67 20 66 70 72 69 6e 74 66 28 29 20 66 | XPECTF--.***.Testing.fprintf().f |
02c0 | 6f 72 20 63 68 61 72 73 20 2a 2a 2a 0a 0a 00 0a 00 0a 43 0a 25 73 0a 63 0a 44 6f 6e 65 0a | or.chars.***......C.%s.c.Done. |