From: Dmitry Stogov Date: Wed, 27 Jun 2007 11:04:50 +0000 (+0000) Subject: Fixed bitwise operations with numeric unicode strings X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06320d3f5076a4e0f766ad2a5b9e1542d0d5473b;p=php Fixed bitwise operations with numeric unicode strings --- diff --git a/Zend/tests/and_001.phpt b/Zend/tests/and_001.phpt index 109b2ce995..c793828c21 100644 --- a/Zend/tests/and_001.phpt +++ b/Zend/tests/and_001.phpt @@ -3,28 +3,28 @@ bitwise AND and strings --FILE-- int(1) } +--UEXPECT-- +array(1) { + [u"x"]=> + int(1) +} diff --git a/Zend/tests/not_001.phpt b/Zend/tests/not_001.phpt index 6eb0f000c9..0a6f0123b9 100644 --- a/Zend/tests/not_001.phpt +++ b/Zend/tests/not_001.phpt @@ -5,8 +5,8 @@ bitwise NOT, doubles and strings $d = 23.67; $s = "48484.22"; -$s1 = "test"; -$s2 = "some"; +$s1 = b"test"; +$s2 = b"some"; $s = ~$d; var_dump($s); @@ -20,3 +20,7 @@ echo "Done\n"; int(-24) string(8) "8c90929a" Done +--UEXPECTF-- +int(-24) +unicode(8) "8c90929a" +Done diff --git a/Zend/tests/or_001.phpt b/Zend/tests/or_001.phpt index 1e4e5131a5..dbe8da111b 100644 --- a/Zend/tests/or_001.phpt +++ b/Zend/tests/or_001.phpt @@ -3,19 +3,19 @@ bitwise OR and strings --FILE-- > Z_LVAL_P(op2);