]> granicus.if.org Git - php/commitdiff
Fix var_dump test
authorMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 31 Jan 2020 17:36:43 +0000 (18:36 +0100)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 31 Jan 2020 17:36:43 +0000 (18:36 +0100)
ext/standard/tests/general_functions/var_dump.phpt

index 889b2b1fc2bdec8764e42edf89afac14bb3b3694..476620ff267dc2c66152a55e7c7ec49309a758aa 100644 (file)
@@ -99,7 +99,7 @@ $strings = array (
   'PHP',
   "abcd\x0n1234\x0005678\x0000efgh\xijkl",  // strings with hexadecimal NULL
   "abcd\0efgh\0ijkl\x00mnop\x000qrst\00uvwx\0000yz",  // strings with octal NULL
-  "1234\t\n5678\n\t9100\rabcda"  // strings with escape characters
+  "1234\t\n5678\n\t9100\"abcda"  // strings with escape characters
 );
 /* calling check_vardump() to display contents of strings
    using var_dump() */
@@ -448,10 +448,9 @@ string(29) "abcd\0n1234\005678\000efgh\xijkl"
 -- Iteration 13 --
 string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
 -- Iteration 14 --
-string(22) "1234
+string(22) "1234       
 5678
-       9100
-abcda"
+       9100"abcda"
 
 *** Testing var_dump() on boolean variables ***
 -- Iteration 1 --
@@ -1103,10 +1102,9 @@ array(14) {
   [12]=>
   string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
   [13]=>
-  string(22) "1234
+  string(22) "1234     
 5678
-       9100
-abcda"
+       9100"abcda"
 }
 array(15) {
   [0]=>