From: Antony Dovgal Date: Thu, 29 Jun 2006 13:12:21 +0000 (+0000) Subject: fix tests in unicode mode X-Git-Tag: RELEASE_1_0_0RC1~2601 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4cd66ff96f55fac273822517dc742f1d299adc2;p=php fix tests in unicode mode --- diff --git a/ext/sysvshm/tests/005.phpt b/ext/sysvshm/tests/005.phpt index 49d158c7b2..a1cdc95619 100644 --- a/ext/sysvshm/tests/005.phpt +++ b/ext/sysvshm/tests/005.phpt @@ -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 diff --git a/ext/sysvshm/tests/006.phpt b/ext/sysvshm/tests/006.phpt index ae0eef445d..8ec4aab509 100644 --- a/ext/sysvshm/tests/006.phpt +++ b/ext/sysvshm/tests/006.phpt @@ -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