From 2aa661887f2f313d5dbac04f78f07ab59c06d6d8 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 21 Apr 2020 18:24:03 +0200 Subject: [PATCH] Remove redundant vfprintf/vsprintf variation tests These duplicate vprintf() variation tests. While it's useful to test the vfprintf() and vsprintf() variants of the function, the main formatting machinery is shared between them, and it makes little sense to repeat the full set of format tests for all of them. --- .../tests/strings/vfprintf_variation10.phpt | Bin 2936 -> 0 bytes .../tests/strings/vfprintf_variation11.phpt | 86 -------- .../strings/vfprintf_variation11_64bit.phpt | 86 -------- .../tests/strings/vfprintf_variation12.phpt | 123 ------------ .../strings/vfprintf_variation12_64bit.phpt | 123 ------------ .../tests/strings/vfprintf_variation13.phpt | 86 -------- .../strings/vfprintf_variation13_64bit.phpt | 86 -------- .../tests/strings/vfprintf_variation14.phpt | 123 ------------ .../strings/vfprintf_variation14_64bit.phpt | 123 ------------ .../tests/strings/vfprintf_variation15.phpt | 73 ------- .../strings/vfprintf_variation15_64bit.phpt | 73 ------- .../tests/strings/vfprintf_variation16.phpt | 110 ----------- .../strings/vfprintf_variation16_64bit.phpt | 110 ----------- .../tests/strings/vfprintf_variation17.phpt | 68 ------- .../tests/strings/vfprintf_variation18.phpt | 105 ---------- .../tests/strings/vfprintf_variation19.phpt | 92 --------- .../strings/vfprintf_variation19_64bit.phpt | 92 --------- .../tests/strings/vfprintf_variation20.phpt | 173 ---------------- .../tests/strings/vfprintf_variation21.phpt | 164 ---------------- .../tests/strings/vfprintf_variation3.phpt | 84 -------- .../tests/strings/vfprintf_variation4.phpt | 111 ----------- .../strings/vfprintf_variation4_64bit.phpt | 112 ----------- .../tests/strings/vfprintf_variation5.phpt | 83 -------- .../tests/strings/vfprintf_variation6.phpt | 106 ---------- .../tests/strings/vfprintf_variation7.phpt | Bin 2374 -> 0 bytes .../tests/strings/vfprintf_variation8.phpt | 143 -------------- .../tests/strings/vfprintf_variation9.phpt | Bin 1836 -> 0 bytes .../tests/strings/vsprintf_variation1.phpt | 184 ------------------ .../tests/strings/vsprintf_variation10.phpt | Bin 2766 -> 0 bytes .../tests/strings/vsprintf_variation11.phpt | 84 -------- .../strings/vsprintf_variation11_64bit.phpt | 84 -------- .../tests/strings/vsprintf_variation12.phpt | 118 ----------- .../strings/vsprintf_variation12_64bit.phpt | 118 ----------- .../tests/strings/vsprintf_variation13.phpt | 84 -------- .../strings/vsprintf_variation13_64bit.phpt | 84 -------- .../tests/strings/vsprintf_variation14.phpt | 119 ----------- .../strings/vsprintf_variation14_64bit.phpt | 119 ----------- .../tests/strings/vsprintf_variation15.phpt | 66 ------- .../strings/vsprintf_variation15_64bit.phpt | 68 ------- .../tests/strings/vsprintf_variation16.phpt | 104 ---------- .../strings/vsprintf_variation16_64bit.phpt | 104 ---------- .../tests/strings/vsprintf_variation17.phpt | 64 ------ .../tests/strings/vsprintf_variation18.phpt | 100 ---------- .../tests/strings/vsprintf_variation19.phpt | 91 --------- .../strings/vsprintf_variation19_64bit.phpt | 91 --------- .../tests/strings/vsprintf_variation2.phpt | 171 ---------------- .../tests/strings/vsprintf_variation3.phpt | 81 -------- .../tests/strings/vsprintf_variation4.phpt | 104 ---------- .../strings/vsprintf_variation4_64bit.phpt | 104 ---------- .../tests/strings/vsprintf_variation5.phpt | 81 -------- .../tests/strings/vsprintf_variation6.phpt | 100 ---------- .../tests/strings/vsprintf_variation7.phpt | Bin 2233 -> 0 bytes .../tests/strings/vsprintf_variation8.phpt | 135 ------------- .../tests/strings/vsprintf_variation9.phpt | Bin 1701 -> 0 bytes 54 files changed, 4993 deletions(-) delete mode 100644 ext/standard/tests/strings/vfprintf_variation10.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation11.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation11_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation12.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation12_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation13.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation13_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation14.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation14_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation15.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation15_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation16.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation16_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation17.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation18.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation19.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation19_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation20.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation21.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation3.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation4.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation4_64bit.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation5.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation6.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation7.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation8.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_variation9.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation1.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation10.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation11.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation11_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation12.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation12_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation13.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation13_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation14.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation14_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation15.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation15_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation16.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation16_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation17.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation18.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation19.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation19_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation2.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation3.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation4.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation4_64bit.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation5.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation6.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation7.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation8.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_variation9.phpt diff --git a/ext/standard/tests/strings/vfprintf_variation10.phpt b/ext/standard/tests/strings/vfprintf_variation10.phpt deleted file mode 100644 index e3e6a5188054549de27033dd2a521bea4886c0a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2936 zcmbtW&2HO95Vo&;im57tk}Ogp^;6ldlRAw87%++;cF-PN2sE{{h|pYtTv`c&_E4Y? zlc(sRw;p>h&`0SvyZn*l06EmMxVyudZ@!rw&939z%&%`8$GQ=@qQ_{R#i@!qU5bh{ zRIyCyl!`pK7xWlpaln$C912%KMv=@O0+rJyRx3(n>S*a>kQ5@f9Ou>L)f~XzK3}ia z)}TkPGpVHduoeVNc&WV+btn_LEV58gdljV11Uh}n70BFE+xUSX$gD(f+k3u>+#@7k4qN4=UD}2W+8XK86boH_vhrAe$A=4JOwl{>J9@^z{fl(`r+Kk5! zj~{+Jv<>A8E&`nyl$_ycN{;v4WJ}kji4EC~)2f7A4tXAgE6R(zGTu<8Du_|k`)He0 z48>4pD9yFR?x2bU+m_|nz*>6S7N$DS4Q|Im6!2z*NNSYG03~mJ98@YzC+@6Ijv0=p zQ>-|6{dY2QeY`V+=kq&qcpRTJN~4K89z%|CiuWVmJvrf}?+%BJmNWI-iPxucm|$mE zYch5xTUxV`I~w)rc!o^^=FD?F*vx#__q+Z5aP;qYKNw(6CqS4^8{giPUFj#t^AyiI z$Pv^*o|*H+Z{C126YdizGS%kI%#dV;Oz$Z-(>HQB(b?~`sMRN%Y&=#XNu=Fi*`7Zt zWz?$XtPPs=3;VcP)XZDA5RNC)Z)VyaHZA9g$Q~M{%7wi$>pd3id0fNj$?b3>vt-Gz zKfJxV;!$OVXf@PZBNmSFussgVx9dzaT}daP$wZluVYlq19b^y*EX591jt7*g1grdk zUaQvPl)+W`PA95awm5Il-G^ZAwM`Txd9%8C^LAdpdUbJijn%$+vo*D5%j597 zwT|bXKZB{-h~!axh80p+>mrlQ+}oPN1=X3Yf6jMOCIU@!8K?kkO`#Eo*(Z*uPddu2 zNQ@N4tYhqxxAo508H>`~Xf=s|A+`tqTfbOd?!q$BF89eEg*fgMxAtZ6u;wv}ajfDz zYcuDCUY*lo@$&M`VnHt1gX$Pr)JHvfw|cM8c;kpVUv=8in$FSx)*|gRD5$-Svb$Xz z$b@rT6(3I)U;TdJ}LHF_CPCnv7Q1)A$Vs7AkQhx5rLHmY$ zPbj;xF>Z&lNR`MCgm-2Em-~5VyL$(@xn6YXBciEpLx>x-cAGj5UBX=7g6L>Tj)Q}= zU!fxJ)EvdyraCnHB`RxF>c_`t)-RS7g^A1srxy15*0IPsyg7?|p%#2P@kL-O-CgLJ zD}Xu0i!_PTciRfc{_|(JfX#n;J^!BXcK_?HU;$|>Y!6Xe7xV|c;O+jILi&|{^iL$%r@wgm0xHnn#qf79K7ASE(^HHQV;m4Z?B*jde%E`(68g?a|JDnwZ~zt7 o-HBz)7>9%pV;lmbo^DB>Om{FQ6^3@h7zY&`CWZ%3cBY5ce;1(|@&Et; diff --git a/ext/standard/tests/strings/vfprintf_variation11.phpt b/ext/standard/tests/strings/vfprintf_variation11.phpt deleted file mode 100644 index 2c4134f3b7..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation11.phpt +++ /dev/null @@ -1,86 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - octal formats with octal values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : octal formats with octal values *** - --- Iteration 1 -- -0 --- Iteration 2 -- -37777777777 1 --- Iteration 3 -- -20000000000 o, 17777777777 20000000001 --- Iteration 4 -- - 37776543211 0000 --- Iteration 5 -- -111 2222 37777444445 37733333334 --- Iteration 6 -- -11073 7653 123 12 --- Iteration 7 -- -% %o o --- Iteration 8 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation11_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation11_64bit.phpt deleted file mode 100644 index 355d14d185..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation11_64bit.phpt +++ /dev/null @@ -1,86 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - octal formats with octal values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : octal formats with octal values *** - --- Iteration 1 -- -0 --- Iteration 2 -- -1777777777777777777777 1 --- Iteration 3 -- -1777777777760000000000 o, 17777777777 1777777777760000000001 --- Iteration 4 -- - 1777777777777776543211 0000 --- Iteration 5 -- -111 2222 1777777777777777444445 1777777777777733333334 --- Iteration 6 -- -11073 7653 123 12 --- Iteration 7 -- -% %o o --- Iteration 8 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation12.phpt b/ext/standard/tests/strings/vfprintf_variation12.phpt deleted file mode 100644 index 02fe5ac6f8..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation12.phpt +++ /dev/null @@ -1,123 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - octal formats with non-octal values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation12.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different octal formats from the above $format array -// and with non-octal values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -2 0 12 - 361100 o 37777775456 2322 - - 30071 14 37777777764 37777416700 - 12 361100 2 0 --- Iteration 2 -- -2 37777777776 2 - 361100 o 37720715133 57062645 - - 57060664 4475347 37721631371 37720717336 - 2 361100 2 37777777776 --- Iteration 3 -- -0 0 0 - 173 o 37777777605 173 - - 2322 0 $0 _0 - 0 173 0 0 --- Iteration 4 -- -1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1 --- Iteration 5 -- -1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation12_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation12_64bit.phpt deleted file mode 100644 index d6c28bc78e..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation12_64bit.phpt +++ /dev/null @@ -1,123 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - octal formats with non-octal values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation12_64bit.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different octal formats from the above $format array -// and with non-octal values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -2 0 12 - 361100 o 1777777777777777775456 2322 - - 30071 14 1777777777777777777764 1777777777777777416700 - 12 361100 2 0 --- Iteration 2 -- -2 1777777777777777777776 2 - 361100 o 1777777777777720715133 57062645 - - 57060664 4475347 1777777777777721631371 1777777777777720717336 - 2 361100 2 1777777777777777777776 --- Iteration 3 -- -0 0 0 - 173 o 1777777777777777777605 173 - - 2322 0 $0 _0 - 0 173 0 0 --- Iteration 4 -- -1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1 --- Iteration 5 -- -1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation13.phpt b/ext/standard/tests/strings/vfprintf_variation13.phpt deleted file mode 100644 index 6331172a0d..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation13.phpt +++ /dev/null @@ -1,86 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - hexa formats with hexa values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -0 --- Iteration 2 -- -ffffffff 1 22 --- Iteration 3 -- -7fffffff x, 7000000 80000000 --- Iteration 4 -- - ffed2979 0000 --- Iteration 5 -- -#1 2222 1b6db bbbbbbbc --- Iteration 6 -- -123b fab 0 a --- Iteration 7 -- -%34 x --- Iteration 8 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation13_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation13_64bit.phpt deleted file mode 100644 index aaad2512a4..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation13_64bit.phpt +++ /dev/null @@ -1,86 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - hexa formats with hexa values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -0 --- Iteration 2 -- -ffffffffffffffff 1 22 --- Iteration 3 -- -7fffffff x, 7000000 ffffffff80000000 --- Iteration 4 -- - ffffffffffed2979 0000 --- Iteration 5 -- -#1 2222 1b6db ffffffffbbbbbbbc --- Iteration 6 -- -123b fab 0 a --- Iteration 7 -- -%34 x --- Iteration 8 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation14.phpt b/ext/standard/tests/strings/vfprintf_variation14.phpt deleted file mode 100644 index c22b290c07..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation14.phpt +++ /dev/null @@ -1,123 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - hexa formats with non-hexa values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation14.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different hexa formats from the above $format array -// and with non-hexa values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -2 0 a - 1e240 x fffffb2e 4d2 - - 3039 c fffffff4 fffe1dc0 - a 1e240 2 0 --- Iteration 2 -- -2 fffffffe 2 - 1e240 x ff439a5b bc65a5 - - bc61b4 127ae7 ff4732f9 ff439ede - 2 1e240 2 fffffffe --- Iteration 3 -- -0 0 0 - 7b x ffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0 --- Iteration 4 -- -1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1 --- Iteration 5 -- -1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation14_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation14_64bit.phpt deleted file mode 100644 index c7443a1544..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation14_64bit.phpt +++ /dev/null @@ -1,123 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - hexa formats with non-hexa values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation14_64bit.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different hexa formats from the above $format array -// and with non-hexa values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -2 0 a - 1e240 x fffffffffffffb2e 4d2 - - 3039 c fffffffffffffff4 fffffffffffe1dc0 - a 1e240 2 0 --- Iteration 2 -- -2 fffffffffffffffe 2 - 1e240 x ffffffffff439a5b bc65a5 - - bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede - 2 1e240 2 fffffffffffffffe --- Iteration 3 -- -0 0 0 - 7b x ffffffffffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0 --- Iteration 4 -- -1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1 --- Iteration 5 -- -1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation15.phpt b/ext/standard/tests/strings/vfprintf_variation15.phpt deleted file mode 100644 index 6ffcf7323c..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation15.phpt +++ /dev/null @@ -1,73 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unsigned formats with unsigned values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -1234567 342391 0 --- Iteration 2 -- -3755744308 u 1234 12345 --- Iteration 3 -- - 1234000 2450319192 120 --- Iteration 4 -- -#1 0 $0 10 --- Iteration 5 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt deleted file mode 100644 index 15332b7b32..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt +++ /dev/null @@ -1,73 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unsigned formats with unsigned values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -1234567 342391 0 --- Iteration 2 -- -12345678900 u 1234 12345 --- Iteration 3 -- - 1234000 101234567000 120 --- Iteration 4 -- -#1 0 $0 10 --- Iteration 5 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation16.phpt b/ext/standard/tests/strings/vfprintf_variation16.phpt deleted file mode 100644 index 3cd509478e..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation16.phpt +++ /dev/null @@ -1,110 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unsigned formats with signed and other types of values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation16.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different unsigned formats from the above $format array -// and with signed and other types of values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -2 0 10 - 123456 u 1234 2820130816 - 2840207360 1177509888 12345 - 12 4294967284 4294843840 _3 - 10 123456 2 0 --- Iteration 2 -- -0 0 0 - 123 u 4294967173 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0 --- Iteration 3 -- -1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1 --- Iteration 4 -- -1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt deleted file mode 100644 index 49586c8027..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt +++ /dev/null @@ -1,110 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unsigned formats with signed and other types of values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation16_64bit.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different unsigned formats from the above $format array -// and with signed and other types of values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -2 0 10 - 123456 u 1234 20000000000 - 2000000000000 22000000000000 12345 - 12 18446744073709551604 18446744073709428160 _3 - 10 123456 2 0 --- Iteration 2 -- -0 0 0 - 123 u 18446744073709551493 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0 --- Iteration 3 -- -1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1 --- Iteration 4 -- -1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation17.phpt b/ext/standard/tests/strings/vfprintf_variation17.phpt deleted file mode 100644 index 060b8c3e6b..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation17.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - scientific formats with scientific values ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : scientific formats and scientific values *** - --- Iteration 1 -- -0.000000e+0 +1.000000e+0 1.000000e+3 --- Iteration 2 -- -2.200000e+2 e 1.000000e+1 1.000000e+10 --- Iteration 3 -- --2.2000e+13 1.0000e+21 1.2000e+2 --- Iteration 4 -- -#########1.000000e+1 1.000000e+2 $$$$$$$$-1.000000e+3 _________1.000000e+2 --- Iteration 5 -- -1.000000e+3 2.000000e+3 3.000000e+3 4.000000e+3 diff --git a/ext/standard/tests/strings/vfprintf_variation18.phpt b/ext/standard/tests/strings/vfprintf_variation18.phpt deleted file mode 100644 index 6ca775b641..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation18.phpt +++ /dev/null @@ -1,105 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - scientific formats with non-scientific values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation18.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different scientific formats from the above $format array -// and with non-scientific values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); -?> ---EXPECT-- -*** Testing vfprintf() : scientific formats and non-scientific values *** - --- Iteration 1 -- -2.200000e+0 +2.000000e-1 1.020000e+1 - 1.234562e+5 e -1.234679e+3 1.234679e+3 - 2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3 - 1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5 - 1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1 --- Iteration 2 -- -0.000000e+0 +0.000000e+0 0.000000e+0 - 1.230000e+2 e -1.230000e+2 1.230000e+2 - 0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0 - 1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0 - 0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0 --- Iteration 3 -- -1.000000e+0 +1.000000e+0 1.000000e+0 - 1.000000e+0 e 1.000000e+0 1.000000e+0 - 1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0 --- Iteration 4 -- -1.000000e+0 +1.000000e+0 0.000000e+0 - 1.000000e+0 e 0.000000e+0 1.000000e+0 - 1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0 diff --git a/ext/standard/tests/strings/vfprintf_variation19.phpt b/ext/standard/tests/strings/vfprintf_variation19.phpt deleted file mode 100644 index f8ce7ec55d..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation19.phpt +++ /dev/null @@ -1,92 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - with whitespaces in format strings ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : with white spaces in format strings *** - --- Iteration 1 -- -111 222 333 --- Iteration 2 -- -1.100000 0.200000 -0.600000 --- Iteration 3 -- -1.120000 -1.130000 0.230000 --- Iteration 4 -- -1 10 11 --- Iteration 5 -- -A B C --- Iteration 6 -- -2.000000e+1 2.000000e-1 -2.000000e+1 --- Iteration 7 -- -4294967285 22 33 --- Iteration 8 -- -12 37777777755 23 --- Iteration 9 -- -11 ffffffde 33 --- Iteration 10 -- -11 FFFFFFDE 33 --- Iteration 11 -- -2.000000E+1 2.000000E-1 -2.000000E+1 diff --git a/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt deleted file mode 100644 index 4f7e0ee53b..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt +++ /dev/null @@ -1,92 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - with whitespaces in format strings ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : with white spaces in format strings *** - --- Iteration 1 -- -111 222 333 --- Iteration 2 -- -1.100000 0.200000 -0.600000 --- Iteration 3 -- -1.120000 -1.130000 0.230000 --- Iteration 4 -- -1 10 11 --- Iteration 5 -- -A B C --- Iteration 6 -- -2.000000e+1 2.000000e-1 -2.000000e+1 --- Iteration 7 -- -18446744073709551605 22 33 --- Iteration 8 -- -12 1777777777777777777755 23 --- Iteration 9 -- -11 ffffffffffffffde 33 --- Iteration 10 -- -11 FFFFFFFFFFFFFFDE 33 --- Iteration 11 -- -2.000000E+1 2.000000E-1 -2.000000E+1 diff --git a/ext/standard/tests/strings/vfprintf_variation20.phpt b/ext/standard/tests/strings/vfprintf_variation20.phpt deleted file mode 100644 index f03b6879b1..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation20.phpt +++ /dev/null @@ -1,173 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unexpected values for the format argument ---FILE-- - 'red', 'item' => 'pen'), - - // null data -/*15*/ NULL, - null, - - // boolean data -/*17*/ true, - false, - TRUE, - FALSE, - - // empty data -/*21*/ "", - '', - - // object data -/*23*/ new sample(), - - // undefined data -/*24*/ @$undefined_var, - - // unset data -/*25*/ @$unset_var, - - // resource data -/*26*/ $file_handle -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation20.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -fprintf($fp, "\n*** Testing vprintf() with with unexpected values for format argument ***\n"); - -$counter = 1; -foreach( $values as $value ) { - fprintf($fp, "\n-- Iteration %d --\n", $counter); - - try { - vfprintf($fp, $value, $args); - } catch (TypeError $exception) { - fprintf($fp, "%s\n", $exception->getMessage()); - } - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : with unexpected values for format argument *** - -*** Testing vprintf() with with unexpected values for format argument *** - --- Iteration 1 -- -0 --- Iteration 2 -- -1 --- Iteration 3 -- -12345 --- Iteration 4 -- --2345 --- Iteration 5 -- -10.5 --- Iteration 6 -- --10.5 --- Iteration 7 -- -101234567000 --- Iteration 8 -- -1.07654321E-9 --- Iteration 9 -- -0.5 --- Iteration 10 -- -vfprintf(): Argument #2 ($format) must be of type string, array given - --- Iteration 11 -- -vfprintf(): Argument #2 ($format) must be of type string, array given - --- Iteration 12 -- -vfprintf(): Argument #2 ($format) must be of type string, array given - --- Iteration 13 -- -vfprintf(): Argument #2 ($format) must be of type string, array given - --- Iteration 14 -- -vfprintf(): Argument #2 ($format) must be of type string, array given - --- Iteration 15 -- - --- Iteration 16 -- - --- Iteration 17 -- -1 --- Iteration 18 -- - --- Iteration 19 -- -1 --- Iteration 20 -- - --- Iteration 21 -- - --- Iteration 22 -- - --- Iteration 23 -- -object --- Iteration 24 -- - --- Iteration 25 -- - --- Iteration 26 -- -vfprintf(): Argument #2 ($format) must be of type string, resource given diff --git a/ext/standard/tests/strings/vfprintf_variation21.phpt b/ext/standard/tests/strings/vfprintf_variation21.phpt deleted file mode 100644 index f44cc36a2c..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation21.phpt +++ /dev/null @@ -1,164 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - unexpected values for args argument ---FILE-- -getMessage() . "\n"); - } - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - - -?> ---EXPECTF-- -*** Testing vfprintf() : with unexpected values for args argument *** - -*** Testing vprintf() with unexpected values for args argument *** - --- Iteration 1 -- -0 --- Iteration 2 -- -1 --- Iteration 3 -- -12345 --- Iteration 4 -- --2345 --- Iteration 5 -- -10.5 --- Iteration 6 -- --10.5 --- Iteration 7 -- -101234567000 --- Iteration 8 -- -1.07654321E-9 --- Iteration 9 -- -0.5 --- Iteration 10 -- -The arguments array must contain 1 items, 0 given - --- Iteration 11 -- -The arguments array must contain 1 items, 0 given - --- Iteration 12 -- -1 --- Iteration 13 -- - --- Iteration 14 -- -1 --- Iteration 15 -- - --- Iteration 16 -- - --- Iteration 17 -- - --- Iteration 18 -- -string --- Iteration 19 -- -string --- Iteration 20 -- -The arguments array must contain 1 items, 0 given - --- Iteration 21 -- -The arguments array must contain 1 items, 0 given - --- Iteration 22 -- -The arguments array must contain 1 items, 0 given - --- Iteration 23 -- -Resource id #%d diff --git a/ext/standard/tests/strings/vfprintf_variation3.phpt b/ext/standard/tests/strings/vfprintf_variation3.phpt deleted file mode 100644 index 3f43709b4e..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation3.phpt +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - int formats with int values ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : int formats with int values *** - --- Iteration 1 -- -0 --- Iteration 2 -- --1 1 --- Iteration 3 -- -2147483647 d, 2147483640 -2147483640 --- Iteration 4 -- - 123456 12345678 -1234567 1234567 --- Iteration 5 -- -111 2222 333333 44444444 --- Iteration 6 -- -4667 4011 83 10 --- Iteration 7 -- -%-5678 d --- Iteration 8 -- -1 2 3 4 diff --git a/ext/standard/tests/strings/vfprintf_variation4.phpt b/ext/standard/tests/strings/vfprintf_variation4.phpt deleted file mode 100644 index d034bbffa0..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation4.phpt +++ /dev/null @@ -1,111 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - int formats with non-integer values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation4.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different int formats from the above $format array -// and with non-int values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : int formats and non-integer values *** - --- Iteration 1 -- -2 +0 10 - 123456 d -1234 1234 - -1474836480 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0 --- Iteration 2 -- -0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0 --- Iteration 3 -- -1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1 --- Iteration 4 -- -1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt deleted file mode 100644 index c03e38e40c..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt +++ /dev/null @@ -1,112 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - int formats with non-integer values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation4_64bit.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different int formats from the above $format array -// and with non-int values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : int formats and non-integer values *** - --- Iteration 1 -- -2 +0 10 - 123456 d -1234 1234 - 20000000000 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0 --- Iteration 2 -- -0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0 --- Iteration 3 -- -1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1 --- Iteration 4 -- -1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation5.phpt b/ext/standard/tests/strings/vfprintf_variation5.phpt deleted file mode 100644 index 71f9b78fbf..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation5.phpt +++ /dev/null @@ -1,83 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - float formats with float values ---FILE-- - ---EXPECT-- -*** Testing vfprintf() : int formats with float values *** - --- Iteration 1 -- -0.000000 --- Iteration 2 -- --0.100000 0.100000 10.000001 --- Iteration 3 -- -2147483649.000000 f, 2147483640.000000 -2147483640.000000 --- Iteration 4 -- -200000.0000 0.0000 -200000.000000 -0.0000 --- Iteration 5 -- -20000.000000 -1999999999999999879418332743206357172224.000000 0.000000 20000000000000000000.000000 --- Iteration 6 -- -4667.000000 4011.000000 83.000000 10.000000 --- Iteration 7 -- -%-5678.567800 f --- Iteration 8 -- -1.110000 2.220000 3.330000 4.440000 diff --git a/ext/standard/tests/strings/vfprintf_variation6.phpt b/ext/standard/tests/strings/vfprintf_variation6.phpt deleted file mode 100644 index d220b8a81f..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation6.phpt +++ /dev/null @@ -1,106 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - float formats with non-float values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation6.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different float formats from the above $format array -// and with non-float values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECT-- -*** Testing vfprintf() : float formats and non-float values *** - --- Iteration 1 -- -2.000000 -2.000000 2.000000 - 123456.000000 f -12346789.000000 12346789.000000 - 123200.0000 20000.0000 -40000.000000 22212.0000 - 12345780.000000 1211111.000000 -12111111.000000 -12345634.000000 - 2.000000 123456.000000 2.000000 -2.000000 --- Iteration 2 -- -0.000000 +0.000000 0.000000 - 123.000000 f -123.000000 123.000000 - 0.0000 0.0000 123456.000000 0.0000 - 1234.000000 0.000000 0.000000 0.000000 - 0.000000 123.000000 0.000000 0.000000 --- Iteration 3 -- -1.000000 +1.000000 1.000000 - 1.000000 f 1.000000 1.000000 - 1.0000 1.0000 1.000000 1.0000 - 1.000000 1.000000 1.000000 1.000000 - 1.000000 1.000000 1.000000 1.000000 --- Iteration 4 -- -1.000000 +1.000000 0.000000 - 1.000000 f 0.000000 1.000000 - 1.0000 0.0000 1.000000 0.0000 - 0.000000 1.000000 1.000000 0.000000 - 0.000000 1.000000 1.000000 1.000000 diff --git a/ext/standard/tests/strings/vfprintf_variation7.phpt b/ext/standard/tests/strings/vfprintf_variation7.phpt deleted file mode 100644 index d6becb602d180a29dc8cc51d1c9fd479c4f945ab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2374 zcmbVNZExE)5bnP6SKM5CvYp5;iPJ7`>x$L^0u)%Wc-Vk>5EzMygxaD&QgMu7|9uZB zDwfg>7zWsqc)WY={Vohw%ez$=vX#(=9!r%MCLN9_t%}&>vY-p9G=C8E$W_iQMN>%H zfbW4)skYo`+T|wmG|j^B=JwMPh*$5*tYp(MeOA&)vo8e!4fyn!)_RDBq=c50iUsvE zUL+gv95?X&8Xp9%6yH;ys|QUqVl<|YLdPmEtw9&`tICZa?(H!mX%LJA6~+p_wL*8b zrdTH8g2a=VY6G2ICDU3HBqL|pBxd6&gY8zTj*K@Mq1k1kpd?RIp#+?H5eon|q({D~ zgog2gO0G4`GSUK?OiN<^9$R{Y>Z244~xdkoF`o)CHOuIcLPYWdTOt+HGbexB~2M8Ya< z@x0K4ffKrr`Yvu=D6-h>seqpWsC0@=U)3kjo6lE z4`oQ@vlAU;$M6-dH?tLyy3i2(ZdRGkmZs~v7Ke0=r! z?8TyCo6jbW;NLTQm@Po_V!`VZPy+YpyJvLL+zn_jz~y{Kdf?cD!D%0ag?-HJN_tqTEVnHS_8oLK24kI~N6y>Gi%7KZ2O`!3cl%fS{) zg$^zyiWto%tfcQ+&wapVuE?W0#H~0w!mvlZk&UK5Wn#0D>)B4KP0~B2o_5Kl5561Q+r!uT>Fn&L7MRUD+`2;7?{O7uVL0ChkTYmiPuz*5aEG8}(Q}d3enEoY z$0&cGJYRL|w{_7jzZPas7Qz~6cG4PSG9?6T2~y0dw(g$0u`KQeZwNZ0Avj`n*2ffM z&KcL&)wZ1Bi%KwVowSCgT@iK4KO4 z5^}X*E7H!$){>!@{B|+;!m4HZv8)Os6s(_LGQio&ggbs=aoy+`(Vy_5u@n9x9qS?t z=@!y%-_anUFvRpcZa~pwbQrx(#v>!;2UC7;_`~@hPNX>>9bK}&7)#@g)WXIXw{Go3 zYG{)bJqQ!ouCtq<755SN>K#ze@~YV6#g{e%((vvFY~bZ@pO+u(R{y`tf&ruzf;l3< zs7pJsG}no*T$f_}qGeyb;5xNjbx#r|BGE55^bKBJtcAk|nJ{;dYulFYMCALDY*TiH s&aBXX+DBBkD*ekIK}&Rz-&kZ!T#UT##anxU-XnA@>J{yZ=BO0=8&$04@c;k- diff --git a/ext/standard/tests/strings/vfprintf_variation8.phpt b/ext/standard/tests/strings/vfprintf_variation8.phpt deleted file mode 100644 index ebf894f5e6..0000000000 --- a/ext/standard/tests/strings/vfprintf_variation8.phpt +++ /dev/null @@ -1,143 +0,0 @@ ---TEST-- -Test vfprintf() function : usage variations - string formats with non-string values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -/* creating dumping file */ -$data_file = __DIR__ . '/vfprintf_variation8.txt'; -if (!($fp = fopen($data_file, 'wt'))) - return; - -// looping to test vfprintf() with different string formats from the above $format array -// and with non-string values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - fprintf($fp, "\n-- Iteration %d --\n",$counter); - vfprintf($fp, $formats, $args); - $counter++; -} - -fclose($fp); -print_r(file_get_contents($data_file)); -echo "\n"; - -unlink($data_file); - -?> ---EXPECTF-- -*** Testing vfprintf() : string formats and non-string values *** - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - --- Iteration 1 -- -2.2 0.2 10.2 - 123456.234 s -1234.6789 1234.6789 - 2123 2765 -27654321000 1234 - 12.000000011111 -12.00000111111 -123456.234 3.33 - 10.2 123456.234 2.2 0.2 --- Iteration 2 -- -2 -2 2 - 123456 s -12346789 12346789 - 1232 2000 -40000 2221 - 12345780 1211111 -12111111 -12345634 - 2 123456 2 -2 --- Iteration 3 -- -Array Array Array - Array s Array Array - Arra Arra Array Arra - Array Array Array Array - Array Array Array Array --- Iteration 4 -- -1 1 - 1 s 1 - 1 0001 0000 - #0 1 $1 _0 - 1 1 1 diff --git a/ext/standard/tests/strings/vfprintf_variation9.phpt b/ext/standard/tests/strings/vfprintf_variation9.phpt deleted file mode 100644 index cd5a2653bc0c6dcbec99d8db58762037ff0787e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1836 zcmbVN+iv4F5bZO+;?$KP+mU>Wb9J|iG;x6d`><#Nv_Q8IXqt+JI-)>QNft%FWj|oQ zq5sw)DJ61t+lK-cCC+eeXNJdVdb_&0O;dI&jm1M=>7umxV2Hdfg)LNxbJT|4Njz{} za3?WHA+}s2SNfh?gU7;dgXDqlYH3)S{&f9rMNYqeTWu>g8R5NFR@sl01o@)~&yj!u zv^1*LLL%DoaJ)Wl!D#LXGFbUDYgo|(I_}~rFO7C|B82yc)%BA_Mz-88KpPDM&?E790Y`#;B9kQ zgP_5iaA3fIUSISQ|2`1tr}SJl`yGA16AAhYr&zSdX4A13H1Da~Ocx|;%;N9nB#HeJ z`8AujI#M*h<}mss5PiRk`-c%}7jBukWgdx`4XHG$?83F&pslDWp86Ev^wSs0Cy z9hR}PU2(C6sn-oELY0;mG`d|FAGZY^5=zqmR;u)klFqIfx@HDnJTpIjSpd3&rxy&S zLx*Yjjzyf{_=KL*t`sEgp_d?ax`X4Bj`EBosawuYNp;q>`w!LhX*NGxCzw9v7w$zn zzjhoSlE0MXiv+YBbu=MCO7e)F;~@*ck09u_ST|Ce`o41Syr5f2*CE<)%QL@wgDktc z{yEDqMm%YUH+yD@v$1`$@sbre2Hy^%yrKcjRVB;8i<1QLqm73{y3QaLu(d8j=XXl^ zxbEh>;w4WunLe-^} znhKaL8ToWGLKQXa$4wh(h(D>2mO`myYW9aRO>s@uo;uOrAWiA+CaqH%b-Y}CZ_{{A z0@;OBerwOCv){c*yFWNsvcDM1#ZDRNU?#2SuS^eIpRzk?GdKMNmgzu0q;r9T0+ZC` zt|k#J75fJroFsez diff --git a/ext/standard/tests/strings/vsprintf_variation1.phpt b/ext/standard/tests/strings/vsprintf_variation1.phpt deleted file mode 100644 index 5366b40325..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation1.phpt +++ /dev/null @@ -1,184 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unexpected values for the format argument ---FILE-- - 'red', 'item' => 'pen'), - - // null data - NULL, - null, - - // boolean data - true, - false, - TRUE, - FALSE, - - // empty data - "", - '', - - // object data - new sample(), - - // undefined data - @$undefined_var, - - // unset data - @$unset_var, - - // resource data - $file_handle -); - -// loop through each element of the array for format - -$counter = 1; -foreach($values as $value) { - echo "\n -- Iteration $counter --\n"; - try { - var_dump(vsprintf($value, $args)); - } catch (TypeError $exception) { - echo $exception->getMessage() . "\n"; - } - $counter++; -} - -// closing the resource -fclose($file_handle); - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : with unexpected values for format argument *** - - -- Iteration 1 -- -string(1) "0" - - -- Iteration 2 -- -string(1) "1" - - -- Iteration 3 -- -string(5) "12345" - - -- Iteration 4 -- -string(5) "-2345" - - -- Iteration 5 -- -string(4) "10.5" - - -- Iteration 6 -- -string(5) "-10.5" - - -- Iteration 7 -- -string(12) "101234567000" - - -- Iteration 8 -- -string(13) "1.07654321E-9" - - -- Iteration 9 -- -string(3) "0.5" - - -- Iteration 10 -- -vsprintf(): Argument #1 ($format) must be of type string, array given - - -- Iteration 11 -- -vsprintf(): Argument #1 ($format) must be of type string, array given - - -- Iteration 12 -- -vsprintf(): Argument #1 ($format) must be of type string, array given - - -- Iteration 13 -- -vsprintf(): Argument #1 ($format) must be of type string, array given - - -- Iteration 14 -- -vsprintf(): Argument #1 ($format) must be of type string, array given - - -- Iteration 15 -- -string(0) "" - - -- Iteration 16 -- -string(0) "" - - -- Iteration 17 -- -string(1) "1" - - -- Iteration 18 -- -string(0) "" - - -- Iteration 19 -- -string(1) "1" - - -- Iteration 20 -- -string(0) "" - - -- Iteration 21 -- -string(0) "" - - -- Iteration 22 -- -string(0) "" - - -- Iteration 23 -- -string(6) "object" - - -- Iteration 24 -- -string(0) "" - - -- Iteration 25 -- -string(0) "" - - -- Iteration 26 -- -vsprintf(): Argument #1 ($format) must be of type string, resource given -Done diff --git a/ext/standard/tests/strings/vsprintf_variation10.phpt b/ext/standard/tests/strings/vsprintf_variation10.phpt deleted file mode 100644 index 5fb45b4e980c2c49df1d33d42b6284807bb74e1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2766 zcmbtW&2HO95Vo&;iUBKwl10+uk5t*NlQ@k61Tcyqc7PsK7&NuA1jt;0Tv`o+_E4Y? zlc(sRw;p>h&`0SvyA&zWE_$eCac5>{zWru)HA~OCnOxs^o^>M%MUTZgUuJ6F?a{o< zQni#Bol#jN_ktdie3`JNAdk{TlG9w~4~Z&hvs4SpWaeq>W3nnmVR_!$cUKbtfAey^ zSX(E@^gfqLs!wY{z$_FNx^EV&bOY&9lIO`MJnxI1MaT3;6luO(^Xg~xL8vm%D5=(0 zVpgHC=d~>JR8T5s;*7+P>ZDLfHcRr^iGhaqtY65yf~_z{AM9Cnl0yZk&8_2 zXA8J?vLGsGofHMAD9M0oA;{^NB^}}rr^DGm&hN_yfEFa@+HG5CO-G~)N%rxvp|n?_ z9;&ui_UDKoa+=xa$m@h=V!q56B0;fqJ+UJ1qAZI&B&#A?(1k_h9Hn&B$Ja}t(a{Rx z6}~Z>Vq*&izE-Poz{((oO-D?fU;slsbSm{0qjrcojK`0FA7LkT4CPCvsVjryWH_4R z#CvV3rO%wn4b@&|RFU^NW{HWz#IpD zfS7UUhhficr-KggG#OxyhCmpNnze%wFQuO#&mx|6k`dfNo|&@{HZ$PNgk1tfrrOMm z4M}Fm^qz7veWJi3y82z4Y?mBz@K}h|N;(ae6NFJ^BYP{eH)z%qPQOuV=JpiEcsTlc ztm6@5drwTxz&LG}a27^yvEY^C8b%A#!A9n*8N+_}@#>04m6yV9sM`@6V?3OIQwyEC z5=~dq1!yW!6=cw>x@Q*^L;)+a2h9tBvOR*^`hlKZdvVFIR5hmy)u=Yt4Zdv%=3d9l zlU31ZHy=Ju>Z!MvSJ%+m;my|6o_4_Lhx@!took;Uym*07wGpdF@eC`Ju=YhI8#&mK zu>{qXt$)sUQmzD=<}6VO*qVbzoTf{hkxM$uolJ}shgs+7Qm`{;;!H#pZoHa8AQ0Pw z|D9hftNXA_v}gL{O3F2NcC;mAi#QNvIC(_s^}LEX%;Zk(t0<`0@o_Mke3CpM1;jIsfZ!wScrk zI3NI;j?|4$dt_hIZ}gh?^#@AnXZnT3ujns4|7P)blqaM=SbPl^c-t++@Lv(X{5Rs4 z=MbYd;sN2q6g~s-SG^l-p;yNGr&hGX0bDTC<`}mT4+$SeJOpAb?pWJm8*%s?qNc!z T2U~Cmh9e7m;-PKvW?TONnCRmS diff --git a/ext/standard/tests/strings/vsprintf_variation11.phpt b/ext/standard/tests/strings/vsprintf_variation11.phpt deleted file mode 100644 index defcd593e0..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation11.phpt +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - octal formats with octal values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : octal formats with octal values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(14) "37777777777 1 " - --- Iteration 3 -- -string(38) "20000000000 o, 17777777777 20000000001" - --- Iteration 4 -- -string(38) " 37776543211 0000" - --- Iteration 5 -- -string(32) "111 2222 37777444445 37733333334" - --- Iteration 6 -- -string(17) "11073 7653 123 12" - --- Iteration 7 -- -string(6) "% %o o" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt deleted file mode 100644 index 127d3f594d..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - octal formats with octal values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : octal formats with octal values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(25) "1777777777777777777777 1 " - --- Iteration 3 -- -string(60) "1777777777760000000000 o, 17777777777 1777777777760000000001" - --- Iteration 4 -- -string(49) " 1777777777777776543211 0000" - --- Iteration 5 -- -string(54) "111 2222 1777777777777777444445 1777777777777733333334" - --- Iteration 6 -- -string(17) "11073 7653 123 12" - --- Iteration 7 -- -string(6) "% %o o" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation12.phpt b/ext/standard/tests/strings/vsprintf_variation12.phpt deleted file mode 100644 index 8ef03b3acd..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation12.phpt +++ /dev/null @@ -1,118 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - octal formats with non-octal values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different octal formats from the above $format array -// and with non-octal values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -string(114) "2 0 12 - 361100 o 37777775456 2322 - - 30071 14 37777777764 37777416700 - 12 361100 2 0" - --- Iteration 2 -- -string(144) "2 37777777776 2 - 361100 o 37720715133 57062645 - - 57060664 4475347 37721631371 37720717336 - 2 361100 2 37777777776" - --- Iteration 3 -- -string(86) "0 0 0 - 173 o 37777777605 173 - - 2322 0 $0 _0 - 0 173 0 0" - --- Iteration 4 -- -string(73) "1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(73) "1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt deleted file mode 100644 index b786bfe21e..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation12_64bit.phpt +++ /dev/null @@ -1,118 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - octal formats with non-octal values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different octal formats from the above $format array -// and with non-octal values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : octal formats and non-octal values *** - --- Iteration 1 -- -string(151) "2 0 12 - 361100 o 1777777777777777775456 2322 - - 30071 14 1777777777777777777764 1777777777777777416700 - 12 361100 2 0" - --- Iteration 2 -- -string(203) "2 1777777777777777777776 2 - 361100 o 1777777777777720715133 57062645 - - 57060664 4475347 1777777777777721631371 1777777777777720717336 - 2 361100 2 1777777777777777777776" - --- Iteration 3 -- -string(101) "0 0 0 - 173 o 1777777777777777777605 173 - - 2322 0 $0 _0 - 0 173 0 0" - --- Iteration 4 -- -string(77) "1 1 1 - 1 o 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(77) "1 1 0 - 1 o 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation13.phpt b/ext/standard/tests/strings/vsprintf_variation13.phpt deleted file mode 100644 index 6899766b0a..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation13.phpt +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - hexa formats with hexa values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(13) "ffffffff 1 22" - --- Iteration 3 -- -string(28) "7fffffff x, 7000000 80000000" - --- Iteration 4 -- -string(35) " ffed2979 0000" - --- Iteration 5 -- -string(22) "#1 2222 1b6db bbbbbbbc" - --- Iteration 6 -- -string(12) "123b fab 0 a" - --- Iteration 7 -- -string(5) "%34 x" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt deleted file mode 100644 index 3828414360..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt +++ /dev/null @@ -1,84 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - hexa formats with hexa values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : hexa formats with hexa values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(21) "ffffffffffffffff 1 22" - --- Iteration 3 -- -string(36) "7fffffff x, 7000000 ffffffff80000000" - --- Iteration 4 -- -string(43) " ffffffffffed2979 0000" - --- Iteration 5 -- -string(30) "#1 2222 1b6db ffffffffbbbbbbbc" - --- Iteration 6 -- -string(12) "123b fab 0 a" - --- Iteration 7 -- -string(5) "%34 x" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation14.phpt b/ext/standard/tests/strings/vsprintf_variation14.phpt deleted file mode 100644 index ede83de3c1..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation14.phpt +++ /dev/null @@ -1,119 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - hexa formats with non-hexa values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different hexa formats from the above $format array -// and with non-hexa values from the above $args_array array - -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -string(99) "2 0 a - 1e240 x fffffb2e 4d2 - - 3039 c fffffff4 fffe1dc0 - a 1e240 2 0" - --- Iteration 2 -- -string(122) "2 fffffffe 2 - 1e240 x ff439a5b bc65a5 - - bc61b4 127ae7 ff4732f9 ff439ede - 2 1e240 2 fffffffe" - --- Iteration 3 -- -string(80) "0 0 0 - 7b x ffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0" - --- Iteration 4 -- -string(73) "1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(73) "1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt deleted file mode 100644 index 971a7ae3b2..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation14_64bit.phpt +++ /dev/null @@ -1,119 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - hexa formats with non-hexa values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different hexa formats from the above $format array -// and with non-hexa values from the above $args_array array - -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : hexa formats and non-hexa values *** - --- Iteration 1 -- -string(127) "2 0 a - 1e240 x fffffffffffffb2e 4d2 - - 3039 c fffffffffffffff4 fffffffffffe1dc0 - a 1e240 2 0" - --- Iteration 2 -- -string(166) "2 fffffffffffffffe 2 - 1e240 x ffffffffff439a5b bc65a5 - - bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede - 2 1e240 2 fffffffffffffffe" - --- Iteration 3 -- -string(92) "0 0 0 - 7b x ffffffffffffff85 7b - - 4d2 0 $0 _0 - 0 7b 0 0" - --- Iteration 4 -- -string(77) "1 1 1 - 1 x 1 1 - - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 5 -- -string(77) "1 1 0 - 1 x 0 1 - - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation15.phpt b/ext/standard/tests/strings/vsprintf_variation15.phpt deleted file mode 100644 index f31aadfb46..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation15.phpt +++ /dev/null @@ -1,66 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unsigned formats with unsigned values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -string(16) "1234567 342391 0" - --- Iteration 2 -- -string(23) "3755744308 u 1234 12345" - --- Iteration 3 -- -string(25) " 1234000 1012345 120" - --- Iteration 4 -- -string(10) "#1 0 $0 10" - --- Iteration 5 -- -string(7) "1 2 3 4" diff --git a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt deleted file mode 100644 index d4efd44fbd..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unsigned formats with unsigned values ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : unsigned formats and unsigned values *** - --- Iteration 1 -- -string(16) "1234567 342391 0" - --- Iteration 2 -- -string(24) "12345678900 u 1234 12345" - --- Iteration 3 -- -string(34) " 1234000 3875820019684212736 120" - --- Iteration 4 -- -string(10) "#1 0 $0 10" - --- Iteration 5 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation16.phpt b/ext/standard/tests/strings/vsprintf_variation16.phpt deleted file mode 100644 index 862828d5ad..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation16.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unsigned formats with signed and other types of values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different unsigned formats from the above $format array -// and with signed and other types of values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -string(113) "2 0 10 - 123456 u 1234 2820130816 - 2840207360 1177509888 12345 - 12 4294967284 4294843840 _3 - 10 123456 2 0" - --- Iteration 2 -- -string(86) "0 0 0 - 123 u 4294967173 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(74) "1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(74) "1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt deleted file mode 100644 index e6cbd84484..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unsigned formats with signed and other types of values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different unsigned formats from the above $format array -// and with signed and other types of values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : unsigned formats and signed & other types of values *** - --- Iteration 1 -- -string(145) "2 0 10 - 123456 u 1234 20000000000 - 2000000000000 22000000000000 12345 - 12 18446744073709551604 18446744073709428160 _3 - 10 123456 2 0" - --- Iteration 2 -- -string(100) "0 0 0 - 123 u 18446744073709551493 123 - 0 0 0 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(78) "1 1 1 - 1 u 1 1 - 1 1 1 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(78) "1 1 0 - 1 u 0 1 - 1 1 0 - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation17.phpt b/ext/standard/tests/strings/vsprintf_variation17.phpt deleted file mode 100644 index 17790432aa..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation17.phpt +++ /dev/null @@ -1,64 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - scientific formats with scientific values ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : scientific formats and scientific values *** - --- Iteration 1 -- -string(36) "0.000000e+0 +1.000000e+0 1.000000e+3" - --- Iteration 2 -- -string(38) "2.200000e+2 e 1.000000e+1 1.000000e+10" - --- Iteration 3 -- -string(32) "-2.2000e+13 1.0000e+21 1.2000e+2" - --- Iteration 4 -- -string(74) "#########1.000000e+1 1.000000e+2 $$$$$$$$-1.000000e+3 _________1.000000e+2" - --- Iteration 5 -- -string(47) "1.000000e+3 2.000000e+3 3.000000e+3 4.000000e+3" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation18.phpt b/ext/standard/tests/strings/vsprintf_variation18.phpt deleted file mode 100644 index c044dbbdb8..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation18.phpt +++ /dev/null @@ -1,100 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - scientific formats with non-scientific values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different scientific formats from the above $format array -// and with non-scientific values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : scientific formats and non-scientific values *** - --- Iteration 1 -- -string(231) "2.200000e+0 +2.000000e-1 1.020000e+1 - 1.234562e+5 e -1.234679e+3 1.234679e+3 - 2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3 - 1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5 - 1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1" - --- Iteration 2 -- -string(227) "0.000000e+0 +0.000000e+0 0.000000e+0 - 1.230000e+2 e -1.230000e+2 1.230000e+2 - 0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0 - 1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0 - 0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0" - --- Iteration 3 -- -string(226) "1.000000e+0 +1.000000e+0 1.000000e+0 - 1.000000e+0 e 1.000000e+0 1.000000e+0 - 1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0 - 1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0" - --- Iteration 4 -- -string(226) "1.000000e+0 +1.000000e+0 0.000000e+0 - 1.000000e+0 e 0.000000e+0 1.000000e+0 - 1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0 - 0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation19.phpt b/ext/standard/tests/strings/vsprintf_variation19.phpt deleted file mode 100644 index e2b3fe0778..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation19.phpt +++ /dev/null @@ -1,91 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - with whitespaces in format strings ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : with white spaces in format strings *** - --- Iteration 1 -- -string(13) "111 222 333" - --- Iteration 2 -- -string(29) "1.100000 0.200000 -0.600000" - --- Iteration 3 -- -string(29) "1.120000 -1.130000 0.230000" - --- Iteration 4 -- -string(9) "1 10 11" - --- Iteration 5 -- -string(7) "A B C" - --- Iteration 6 -- -string(38) "2.000000e+1 2.000000e-1 -2.000000e+1" - --- Iteration 7 -- -string(18) "4294967285 22 33" - --- Iteration 8 -- -string(19) "12 37777777755 23" - --- Iteration 9 -- -string(16) "11 ffffffde 33" - --- Iteration 10 -- -string(16) "11 FFFFFFDE 33" - --- Iteration 11 -- -string(38) "2.000000E+1 2.000000E-1 -2.000000E+1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt deleted file mode 100644 index 5cef628edb..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation19_64bit.phpt +++ /dev/null @@ -1,91 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - with whitespaces in format strings ---SKIPIF-- - ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : with white spaces in format strings *** - --- Iteration 1 -- -string(13) "111 222 333" - --- Iteration 2 -- -string(29) "1.100000 0.200000 -0.600000" - --- Iteration 3 -- -string(29) "1.120000 -1.130000 0.230000" - --- Iteration 4 -- -string(9) "1 10 11" - --- Iteration 5 -- -string(7) "A B C" - --- Iteration 6 -- -string(38) "2.000000e+1 2.000000e-1 -2.000000e+1" - --- Iteration 7 -- -string(28) "18446744073709551605 22 33" - --- Iteration 8 -- -string(30) "12 1777777777777777777755 23" - --- Iteration 9 -- -string(24) "11 ffffffffffffffde 33" - --- Iteration 10 -- -string(24) "11 FFFFFFFFFFFFFFDE 33" - --- Iteration 11 -- -string(38) "2.000000E+1 2.000000E-1 -2.000000E+1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation2.phpt b/ext/standard/tests/strings/vsprintf_variation2.phpt deleted file mode 100644 index 3af9b854fe..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation2.phpt +++ /dev/null @@ -1,171 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - unexpected values for args argument ---FILE-- -getMessage(), "\n"; - } - $counter++; -}; - -// closing the resource -fclose($file_handle); - -echo "Done"; -?> ---EXPECTF-- -*** Testing vsprintf() : with unexpected values for args argument *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(1) "1" - --- Iteration 3 -- -string(5) "12345" - --- Iteration 4 -- -string(5) "-2345" - --- Iteration 5 -- -string(4) "10.5" - --- Iteration 6 -- -string(5) "-10.5" - --- Iteration 7 -- -string(12) "101234567000" - --- Iteration 8 -- -string(13) "1.07654321E-9" - --- Iteration 9 -- -string(3) "0.5" - --- Iteration 10 -- -The arguments array must contain 1 items, 0 given - --- Iteration 11 -- -The arguments array must contain 1 items, 0 given - --- Iteration 12 -- -string(1) "1" - --- Iteration 13 -- -string(0) "" - --- Iteration 14 -- -string(1) "1" - --- Iteration 15 -- -string(0) "" - --- Iteration 16 -- -string(0) "" - --- Iteration 17 -- -string(0) "" - --- Iteration 18 -- -string(6) "string" - --- Iteration 19 -- -string(6) "string" - --- Iteration 20 -- -The arguments array must contain 1 items, 0 given - --- Iteration 21 -- -The arguments array must contain 1 items, 0 given - --- Iteration 22 -- -The arguments array must contain 1 items, 0 given - --- Iteration 23 -- -string(%d) "Resource id #%d" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation3.phpt b/ext/standard/tests/strings/vsprintf_variation3.phpt deleted file mode 100644 index 4fa51c92de..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation3.phpt +++ /dev/null @@ -1,81 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - int formats with int values ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : int formats with int values *** - --- Iteration 1 -- -string(1) "0" - --- Iteration 2 -- -string(5) "-1 1 " - --- Iteration 3 -- -string(36) "2147483647 d, 2147483640 -2147483640" - --- Iteration 4 -- -string(38) " 123456 12345678 -1234567 1234567" - --- Iteration 5 -- -string(24) "111 2222 333333 44444444" - --- Iteration 6 -- -string(15) "4667 4011 83 10" - --- Iteration 7 -- -string(8) "%-5678 d" - --- Iteration 8 -- -string(7) "1 2 3 4" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation4.phpt b/ext/standard/tests/strings/vsprintf_variation4.phpt deleted file mode 100644 index 69b6c913ea..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation4.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - int formats with non-integer values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different int formats from the above $format array -// and with non-int values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : int formats and non-integer values *** - --- Iteration 1 -- -string(111) "2 +0 10 - 123456 d -1234 1234 - -1474836480 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0" - --- Iteration 2 -- -string(91) "0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(80) "1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(80) "1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt deleted file mode 100644 index 069d077ea2..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - int formats with non-integer values ---SKIPIF-- - ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different int formats from the above $format array -// and with non-int values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : int formats and non-integer values *** - --- Iteration 1 -- -string(111) "2 +0 10 - 123456 d -1234 1234 - 20000000000 200000 4000 22000000 - 12345 12 -12 -123456 - 10 123456 2 0" - --- Iteration 2 -- -string(91) "0 +0 0 - 123 d -123 123 - 0 0 123456 0000 - 1234 0 $0 _0 - 0 123 0 0" - --- Iteration 3 -- -string(80) "1 +1 1 - 1 d 1 1 - 1 1 1 0001 - #1 1 $1 _1 - 1 1 1 1" - --- Iteration 4 -- -string(80) "1 +1 0 - 1 d 0 1 - 1 0 1 0000 - #0 1 $1 _0 - 0 1 1 1" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation5.phpt b/ext/standard/tests/strings/vsprintf_variation5.phpt deleted file mode 100644 index 8c7046021b..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation5.phpt +++ /dev/null @@ -1,81 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - float formats with float values ---FILE-- - ---EXPECT-- -*** Testing vsprintf() : int formats with float values *** - --- Iteration 1 -- -string(8) "0.000000" - --- Iteration 2 -- -string(28) "-0.100000 0.100000 10.000001" - --- Iteration 3 -- -string(57) "2147483649.000000 f, 2147483640.000000 -2147483640.000000" - --- Iteration 4 -- -string(45) "200000.0000 0.0000 -200000.000000 -0.0000" - --- Iteration 5 -- -string(98) "20000.000000 -1999999999999999879418332743206357172224.000000 0.000000 20000000000000000000.000000" - --- Iteration 6 -- -string(43) "4667.000000 4011.000000 83.000000 10.000000" - --- Iteration 7 -- -string(15) "%-5678.567800 f" - --- Iteration 8 -- -string(35) "1.110000 2.220000 3.330000 4.440000" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation6.phpt b/ext/standard/tests/strings/vsprintf_variation6.phpt deleted file mode 100644 index 732f805441..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation6.phpt +++ /dev/null @@ -1,100 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - float formats with non-float values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, 0, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different float formats from the above $format array -// and with non-float values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -echo "Done"; -?> ---EXPECT-- -*** Testing vsprintf() : float formats and non-float values *** - --- Iteration 1 -- -string(243) "2.000000 -2.000000 2.000000 - 123456.000000 f -12346789.000000 12346789.000000 - 123200.0000 20000.0000 -40000.000000 22212.0000 - 12345780.000000 1211111.000000 -12111111.000000 -12345634.000000 - 2.000000 123456.000000 2.000000 -2.000000" - --- Iteration 2 -- -string(195) "0.000000 +0.000000 0.000000 - 123.000000 f -123.000000 123.000000 - 0.0000 0.0000 123456.000000 0.0000 - 1234.000000 0.000000 0.000000 0.000000 - 0.000000 123.000000 0.000000 0.000000" - --- Iteration 3 -- -string(178) "1.000000 +1.000000 1.000000 - 1.000000 f 1.000000 1.000000 - 1.0000 1.0000 1.000000 1.0000 - 1.000000 1.000000 1.000000 1.000000 - 1.000000 1.000000 1.000000 1.000000" - --- Iteration 4 -- -string(178) "1.000000 +1.000000 0.000000 - 1.000000 f 0.000000 1.000000 - 1.0000 0.0000 1.000000 0.0000 - 0.000000 1.000000 1.000000 0.000000 - 0.000000 1.000000 1.000000 1.000000" -Done diff --git a/ext/standard/tests/strings/vsprintf_variation7.phpt b/ext/standard/tests/strings/vsprintf_variation7.phpt deleted file mode 100644 index 57ac54fda98d9e18eef64e04f8da3ccf770fa7f9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2233 zcmbVNZENF35WarhUoq(H%66jIvYp)Jt=H0X;NYM~<3gb>Mv>N$z}AZ0Rea{S|K4X` zWXleP(%`JLvop`U>@%Y%n$I5RQN-q4X?jtWEK0rV^=Va?sV+oGH&mKO~VO zmrSHSa>Y7cu=J(Br@Onm*>7_;&kIHPdAWt+8LO4S^F|j8n(&2dJ;rq;5aoJDCGwO- zst9%7JM+R+1=dzMo!u?*})0Q|TR?;VSn@93fkUSGYdRRz)1OQ2Zmx zp&m_D?;ZPkj40@;;M_jX6m=u~Kl=R|@1NBU4aI~^b>4*SY z7A5%vFO2mpNztnHlS>utQtG5YPak7#^8#wAkdmuPfW%r5Ht;cPv3CoZm=!ND56iW zvY!yzV?>c1U1UBl%dFm1y~Et|kSO&bhQAuiDE_-o=m^?lot@pX?~FNrA5Had*@vI- zIhy_XW%ld*0biv5J6;)3TG7V@ELY}U+$XU6L}A=kxQ2!$^&3lgOfsTzqalG diff --git a/ext/standard/tests/strings/vsprintf_variation8.phpt b/ext/standard/tests/strings/vsprintf_variation8.phpt deleted file mode 100644 index 061e628c02..0000000000 --- a/ext/standard/tests/strings/vsprintf_variation8.phpt +++ /dev/null @@ -1,135 +0,0 @@ ---TEST-- -Test vsprintf() function : usage variations - string formats with non-string values ---FILE-- -"12twelve"), - array("3"), array("4"), array("1"), array("2") ), - - // array of boolean data - array( true, TRUE, false, - TRUE, FALSE, 1, - true, false, TRUE, FALSE, - 0, 1, 1, 0, - 1, TRUE, 0, FALSE), - -); - -// looping to test vsprintf() with different string formats from the above $format array -// and with non-string values from the above $args_array array -$counter = 1; -foreach($args_array as $args) { - echo "\n-- Iteration $counter --\n"; - var_dump( vsprintf($formats, $args) ); - $counter++; -} - -?> ---EXPECTF-- -*** Testing vsprintf() : string formats and non-string values *** - --- Iteration 1 -- -string(177) "2.2 0.2 10.2 - 123456.234 -1234.6789 1234.6789 - 2123 2765 -27654321000 2123 - 12345.78 12.000000011111 -12.00000111111 -123456.234 - 10.2 123456.234 2.2 0.2" - --- Iteration 2 -- -string(133) "2 -2 2 - 123456 -12346789 12346789 - 1232 2000 -40000 2221 - 12345780 1211111 -12111111 -12345634 - 2 123456 2 -2" - --- Iteration 3 -- - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d - -Warning: Array to string conversion in %s on line %d -string(132) "Array Array Array - Array Array Array - Arra Arra Array Arra - Array Array Array Array - Array Array Array Array" - --- Iteration 4 -- -string(82) "1 1 - 1 1 - 1 0001 0000 - #0 1 $1 _0 - 1 1 1" diff --git a/ext/standard/tests/strings/vsprintf_variation9.phpt b/ext/standard/tests/strings/vsprintf_variation9.phpt deleted file mode 100644 index fc9b16dbee01f83be2395c9947f3bea6c1c2fddc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1701 zcmbVM|4!R55Z>Q@ic{9AO&j-TXbatjSm`7r{y>92CXK0bU57@3II^7rn)WPvfIY+B zZD%JbAxvnRlsNI-=kI*qolWW0^74vOawW8ZolaGpn5gYTlqKB6GJzw=G`kV7V=89W zqJaY6G6j)Tcg$$GkIgo>?AUE4G@Rkq*4bTdKcg$1tYbmW-TNL&~(q=thFsioIHnSMaR_uhYrNpQY+! z`mbsSxa>Od<^;FbhmDBh#1cFUUJ6edWd+{nfHnc}n%oQAx67eP@m&=2Tl_!g0W?GF z2us*-&~t|3JFt^Mh_+%`>+J|FEjKjWxEhr{bQDhkh9(+#)6H7VaRa@f9fo!oHF%5o zm>OnwV%5}8$cfEm8^#(}+71!WlI2x}57(7HL_JcDwR*1*QN6{VzfWtw>lW!0=d4TW4C#CSW zQl_?}Y~$9BygSF6IEsW4iFw|qk&<_=G;A$*qAW+Qh^+}8v={dP)E8A0c2bfCmsw(j zg7+|-6D*A_QG4IkOqYRt_>TJL2kSba6wYv!yNzJaL8&`9U~j6`Cc8`9PghJq89=4V zU(1zr_{|6GOW1RDyL0k`kUZY0Oavat;}3YREx%kW7xudR|I