]> granicus.if.org Git - php/commitdiff
fix tests in unicode mode
authorAntony Dovgal <tony2001@php.net>
Thu, 29 Jun 2006 13:12:21 +0000 (13:12 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 29 Jun 2006 13:12:21 +0000 (13:12 +0000)
ext/sysvshm/tests/005.phpt
ext/sysvshm/tests/006.phpt

index 49d158c7b241708a038a0e71044f2b7de6ac7316..a1cdc95619ec3b5fa9ec29281898517a32e781cd 100644 (file)
@@ -66,3 +66,32 @@ bool(false)
 NULL
 NULL
 Done
+--UEXPECTF--
+Warning: Wrong parameter count for shm_get_var() in %s on line %d
+NULL
+
+Warning: shm_get_var(): -1 is not a SysV shared memory index in %s on line %d
+bool(false)
+
+Warning: shm_get_var(): variable key 1000 doesn't exist in %s on line %d
+bool(false)
+
+Warning: shm_get_var(): variable key -10000 doesn't exist in %s on line %d
+bool(false)
+object(stdClass)#%d (0) {
+}
+unicode(11) "test string"
+object(stdClass)#%d (0) {
+}
+array(3) {
+  [0]=>
+  int(1)
+  [1]=>
+  int(2)
+  [2]=>
+  int(3)
+}
+bool(false)
+NULL
+NULL
+Done
index ae0eef445da209f05b405f6cfe7c203bef1a47e6..8ec4aab5090ee4115bb41df6bed58ee2e2013d8a 100644 (file)
@@ -46,3 +46,24 @@ bool(false)
 Warning: shm_get_var(): variable key 1 doesn't exist in %s on line %d
 bool(false)
 Done
+--UEXPECTF--
+Warning: Wrong parameter count for shm_remove_var() in %s on line %d
+NULL
+
+Warning: shm_remove_var(): -1 is not a SysV shared memory index in %s on line %d
+bool(false)
+
+Warning: shm_remove_var(): variable key -10 doesn't exist in %s on line %d
+bool(false)
+unicode(11) "test string"
+bool(true)
+
+Warning: shm_get_var(): variable key 1 doesn't exist in %s on line %d
+bool(false)
+
+Warning: shm_remove_var(): variable key 1 doesn't exist in %s on line %d
+bool(false)
+
+Warning: shm_get_var(): variable key 1 doesn't exist in %s on line %d
+bool(false)
+Done