Return to bug26973.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: Bug #26973 (*printf() '+' modifier problem) 3: --FILE-- 4: <?php 5: 6: printf("%+05d\n", 200); 7: printf("%+05d\n", -200); 8: printf("%+05f\n", 200); 9: printf("%+05f\n", -200); 10: printf("%+05u\n", 200); 11: printf("%+05u\n", -200); 12: echo "---\n"; 13: printf("%05d\n", 200); 14: printf("%05d\n", -200); 15: printf("%05f\n", 200); 16: printf("%05f\n", -200); 17: printf("%05u\n", 200); 18: printf("%05u\n", -200); 19: 20: ?> 21: --EXPECTREGEX-- 22: \+0200 23: \-0200 24: \+200\.000000 25: \-200\.000000 26: 00200 27: (4294967096|18446744073709551416) 28: --- 29: 00200 30: \-0200 31: 200\.000000 32: \-200\.000000 33: 00200 34: (4294967096|18446744073709551416)