]> granicus.if.org Git - php/commitdiff
- Fixed tests
authorFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 17:53:53 +0000 (17:53 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 17:53:53 +0000 (17:53 +0000)
14 files changed:
ext/date/tests/idate_variation7.phpt
ext/filter/tests/041.phpt
ext/posix/tests/posix_initgroups.phpt
ext/session/tests/session_module_name_variation3.phpt
ext/session/tests/session_name_error.phpt
ext/session/tests/session_name_variation1.phpt
ext/session/tests/session_save_path_basic.phpt
ext/session/tests/session_save_path_error.phpt
ext/session/tests/session_save_path_variation1.phpt
ext/session/tests/session_set_save_handler_basic.phpt
ext/standard/tests/array/compact_variation1.phpt
tests/basic/022.phpt
tests/lang/bug44654.phpt
tests/lang/comments.phpt

index 9cd6f8edacae7da5b731482337e11d1f9aa2be96..a5e3a2ee7dc7c58fe2bda19dd4c5fa174c56131a 100644 (file)
@@ -24,7 +24,7 @@ var_dump( idate($format, $timestamp) );
 *** Testing idate() : usage variation ***
 
 Strict Standards: idate(): It is not safe to rely on the system's timezone settings.%s
-int(2008)
+int(2009)
 
 Strict Standards: idate(): It is not safe to rely on the system's timezone settings.%s
 int(2008)
index 0a2e3f0a1175e97fb2bb0df28f63ca5933e30900..5cb6c2249e67bfed6811b6d75d81c6191f1a83c3 100644 (file)
@@ -19,12 +19,12 @@ var_dump(filter_input(INPUT_COOKIE, "xyz", FILTER_SANITIZE_SPECIAL_CHARS));
 ?>
 --EXPECT--
 array(3) {
-  ["abc"]=>
-  string(3) "dir"
-  ["def"]=>
-  string(4) "true"
-  ["xyz"]=>
-  string(17) "&#34;foo bar&#34;"
+  [u"abc"]=>
+  unicode(3) "dir"
+  [u"def"]=>
+  unicode(4) "true"
+  [u"xyz"]=>
+  unicode(17) "&#34;foo bar&#34;"
 }
 bool(true)
 string(3) "dir"
index 6ffb202f3c92fd98bf4601fb4be4e698620295e4..79dad8ecbea1381ce311b17f0bd3babe48279abf 100644 (file)
@@ -13,6 +13,6 @@ var_dump(posix_initgroups(NULL, NULL));
 
 ?>
 --EXPECTF--
-Warning: posix_initgroups() expects parameter 2 to be long, string given in %s on line %d
+Warning: posix_initgroups() expects parameter 2 to be long, Unicode string given in %s on line %d
 bool(false)
 bool(false)
index 11b6e576270766847ab7bca96f918b26f4d6ee40..1306cf3ec79dfa7f29990c1e5ee23c8968f9f896 100644 (file)
@@ -38,17 +38,6 @@ ob_end_flush();
 ?>
 --EXPECTF--
 *** Testing session_module_name() : variation ***
-string(%d) "%s"
-string(4) "user"
-
-Fatal error: Uncaught exception 'Exception' with message 'Stop...!' in %s:%d
-Stack trace:
-#0 [internal function]: open('', 'PHPSESSID')
-#1 %s(%d): session_start()
-#2 {main}
-  thrown in %s on line %d
---UEXPECTF--
-*** Testing session_module_name() : variation ***
 unicode(5) "files"
 unicode(4) "user"
 
index ca01e9bb59151019c9aee717a69e262581c000fd..d6cb78c746b87707d7f6be3cbcaedcb7cdc530ab 100644 (file)
@@ -97,83 +97,6 @@ ob_end_flush();
 --EXPECTF--
 *** Testing session_name() : error functionality ***
 
--- Iteration 1 --
-string(9) "PHPSESSID"
-
--- Iteration 2 --
-string(1) "0"
-
--- Iteration 3 --
-string(1) "1"
-
--- Iteration 4 --
-string(5) "12345"
-
--- Iteration 5 --
-string(5) "-2345"
-
--- Iteration 6 --
-string(4) "10.5"
-
--- Iteration 7 --
-string(5) "-10.5"
-
--- Iteration 8 --
-string(12) "123456789000"
-
--- Iteration 9 --
-string(13) "1.23456789E-9"
-
--- Iteration 10 --
-string(3) "0.5"
-
--- Iteration 11 --
-string(0) ""
-
--- Iteration 12 --
-string(0) ""
-
--- Iteration 13 --
-string(1) "1"
-
--- Iteration 14 --
-string(0) ""
-
--- Iteration 15 --
-string(1) "1"
-
--- Iteration 16 --
-string(0) ""
-
--- Iteration 17 --
-string(0) ""
-
--- Iteration 18 --
-string(0) ""
-
--- Iteration 19 --
-string(7) "Nothing"
-
--- Iteration 20 --
-string(7) "Nothing"
-
--- Iteration 21 --
-string(12) "Hello World!"
-
--- Iteration 22 --
-string(12) "Hello World!"
-
--- Iteration 23 --
-string(0) ""
-
--- Iteration 24 --
-
-Warning: session_name() expects parameter 1 to be string, resource given in %s on line %d
-NULL
-Done
---UEXPECTF--
-*** Testing session_name() : error functionality ***
-
 -- Iteration 1 --
 unicode(9) "PHPSESSID"
 
index 289d6ca3c7b74b19fccc9dde45c1bdd366ac64aa..930541e1022ee9952e21038c071d3f0e6d40a2e4 100644 (file)
@@ -41,24 +41,6 @@ ob_end_flush();
 ?>
 --EXPECTF--
 *** Testing session_name() : variation ***
-string(9) "PHPSESSID"
-bool(true)
-string(0) ""
-bool(true)
-string(0) ""
-string(0) ""
-bool(true)
-string(1) "    "
-bool(true)
-string(1) "    "
-string(1) "    "
-bool(true)
-string(0) ""
-bool(true)
-string(0) ""
-Done
---UEXPECTF--
-*** Testing session_name() : variation ***
 unicode(9) "PHPSESSID"
 bool(true)
 unicode(0) ""
index 47258f17a7a02ea4852b1b94d0d601b25020c3f1..c7663f4a3e179aae5206b993806d815e7482c1dc 100644 (file)
@@ -29,12 +29,6 @@ ob_end_flush();
 ?>
 --EXPECTF--
 *** Testing session_save_path() : error functionality ***
-string(0) ""
-string(0) ""
-string(%d) "%s"
-Done
---UEXPECTF--
-*** Testing session_save_path() : error functionality ***
 unicode(0) ""
 unicode(0) ""
 unicode(%d) "%s"
index 3e92597877a8fdd2e1442f62bad56cfc40a70cb2..f2d19128e0c8b331621bbf1bab273a04083fcd60 100644 (file)
@@ -101,83 +101,6 @@ ob_end_flush();
 --EXPECTF--
 *** Testing session_save_path() : error functionality ***
 
--- Iteration 1 --
-string(0) ""
-
--- Iteration 2 --
-string(1) "0"
-
--- Iteration 3 --
-string(1) "1"
-
--- Iteration 4 --
-string(5) "12345"
-
--- Iteration 5 --
-string(5) "-2345"
-
--- Iteration 6 --
-string(4) "10.5"
-
--- Iteration 7 --
-string(5) "-10.5"
-
--- Iteration 8 --
-string(12) "123456789000"
-
--- Iteration 9 --
-string(13) "1.23456789E-9"
-
--- Iteration 10 --
-string(3) "0.5"
-
--- Iteration 11 --
-string(0) ""
-
--- Iteration 12 --
-string(0) ""
-
--- Iteration 13 --
-string(1) "1"
-
--- Iteration 14 --
-string(0) ""
-
--- Iteration 15 --
-string(1) "1"
-
--- Iteration 16 --
-string(0) ""
-
--- Iteration 17 --
-string(0) ""
-
--- Iteration 18 --
-string(0) ""
-
--- Iteration 19 --
-string(7) "Nothing"
-
--- Iteration 20 --
-string(7) "Nothing"
-
--- Iteration 21 --
-string(12) "Hello World!"
-
--- Iteration 22 --
-string(12) "Hello World!"
-
--- Iteration 23 --
-string(0) ""
-
--- Iteration 24 --
-
-Warning: session_save_path() expects parameter 1 to be string, resource given in %s on line %d
-NULL
-Done
---UEXPECTF--
-*** Testing session_save_path() : error functionality ***
-
 -- Iteration 1 --
 unicode(0) ""
 
index b79902c3474745498e35157cb30960c740da2f4c..a53a9b204d3687750b0327f67afb41749a26fc39 100644 (file)
@@ -33,16 +33,6 @@ ob_end_flush();
 ?>
 --EXPECTF--
 *** Testing session_save_path() : variation ***
-string(0) ""
-bool(true)
-string(0) ""
-string(0) ""
-string(%d) "%s"
-bool(true)
-string(%d) "%s"
-Done
---UEXPECTF--
-*** Testing session_save_path() : variation ***
 unicode(0) ""
 bool(true)
 unicode(0) ""
index 366f9dc80c62c702fd1107c641214abe76937786..4893e61854ed983b6bca5f64ba16034da6a4474e 100644 (file)
@@ -50,52 +50,6 @@ ob_end_flush();
 --EXPECTF--
 *** Testing session_set_save_handler() : basic functionality ***
 
-string(5) "files"
-
-Warning: session_module_name(): Cannot find named PHP session module () in %s on line %d
-bool(false)
-
-Warning: session_module_name(): Cannot find named PHP session module (blah) in %s on line %d
-bool(false)
-
-Warning: session_module_name(): Cannot find named PHP session module (foo) in %s on line %d
-bool(false)
-Open [%s,PHPSESSID]
-Read [%s,%s]
-array(3) {
-  ["Blah"]=>
-  string(12) "Hello World!"
-  ["Foo"]=>
-  bool(false)
-  ["Guff"]=>
-  int(1234567890)
-}
-Write [%s,%s,Blah|S:12:"Hello World!";Foo|b:0;Guff|i:1234567890;]
-Close [%s,PHPSESSID]
-array(3) {
-  ["Blah"]=>
-  string(12) "Hello World!"
-  ["Foo"]=>
-  bool(false)
-  ["Guff"]=>
-  int(1234567890)
-}
-Starting session again..!
-Open [%s,PHPSESSID]
-Read [%s,%s]
-array(3) {
-  ["Blah"]=>
-  string(12) "Hello World!"
-  ["Foo"]=>
-  bool(false)
-  ["Guff"]=>
-  int(1234567890)
-}
-Write [%s,%s,Blah|S:12:"Hello World!";Foo|b:0;Guff|i:1234567890;]
-Close [%s,PHPSESSID]
---UEXPECTF--
-*** Testing session_set_save_handler() : basic functionality ***
-
 unicode(5) "files"
 
 Warning: session_module_name(): Cannot find named PHP session module () in %s on line %d
index c41126e732db3a6a37776aa0e6091fc7735c7b95..712ea738fd9c54316f8be84508d8aebadba25039 100644 (file)
@@ -32,33 +32,6 @@ echo "Done";
 --EXPECTF--
 *** Testing compact() : usage variations  - arrays containg references ***
 
-Warning: compact(): recursion detected in %s on line %d
-array(1) {
-  ["a"]=>
-  int(1)
-}
-
-Warning: compact(): recursion detected in %s on line %d
-
-Warning: compact(): recursion detected in %s on line %d
-
-Warning: compact(): recursion detected in %s on line %d
-
-Warning: compact(): recursion detected in %s on line %d
-array(2) {
-  ["a"]=>
-  int(1)
-  ["b"]=>
-  int(2)
-}
-array(1) {
-  ["c"]=>
-  int(3)
-}
-Done
---UEXPECTF--
-*** Testing compact() : usage variations  - arrays containg references ***
-
 Warning: compact(): recursion detected in %s on line %d
 array(1) {
   [u"a"]=>
@@ -82,4 +55,4 @@ array(1) {
   [u"c"]=>
   int(3)
 }
-Done
\ No newline at end of file
+Done
index b3cdadd571d569e30d01e77f3007eee74a77b6eb..9f2155759e93c00358aaa1818fe042d3bf9b0f94 100644 (file)
@@ -6,7 +6,7 @@ cookie1=val1  ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=
 <?php
 var_dump($_COOKIE);
 ?>
---EXPECT--
+--EXPECTF--
 array(10) {
   [u"cookie1"]=>
   unicode(0) ""
index 7e7f973d9d38bb4ee2eee5c46df0652296f1f47f..be714e8acc6ef20dcdf3357cae9ca3bc33b4788f 100755 (executable)
@@ -5,4 +5,4 @@ Bug #44654 (syntax error for #)
 <?php if (1) { ?>#<?php } ?>
 #<?php echo 1; ?>
 --EXPECT--
-##1
+#1##1
index 365beffdd71b5a3480b99c44e62141dcb3b17180..ca8b1d2aba542843eb482f0d16459189ad167fb1 100644 (file)
@@ -17,6 +17,7 @@ echo "\n";
 
 ?>
 --EXPECT--
+#teste
 #teste2
 #ola
 uhm # ah