From: Nikita Popov Date: Sat, 3 Feb 2018 18:50:20 +0000 (+0100) Subject: Remove checks for unicode.semantics ini option X-Git-Tag: php-7.3.0alpha1~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c58b307833432eabd8806b15ea12a2beec7d5657;p=php Remove checks for unicode.semantics ini option --- diff --git a/ext/mysqli/tests/mysqli_real_escape_string_big5.phpt b/ext/mysqli/tests/mysqli_real_escape_string_big5.phpt index b177c1fd5b..67c4442d28 100644 --- a/ext/mysqli/tests/mysqli_real_escape_string_big5.phpt +++ b/ext/mysqli/tests/mysqli_real_escape_string_big5.phpt @@ -2,8 +2,6 @@ mysqli_real_escape_string() - big5 --SKIPIF-- getAttribute(PDO::ATTR_CONNECTION_STATUS); - if (ini_get('unicode.semantics')) { - if (!is_unicode($status)) - printf("[001] Expecting unicode, got '%s'\n", var_export($status, true)); - } else { - if (!is_string($status)) - printf("[002] Expecting string, got '%s'\n", var_export($status, true)); - } + if (!is_string($status)) + printf("[002] Expecting string, got '%s'\n", var_export($status, true)); if ('' == $status) printf("[003] Connection status string must not be empty\n"); @@ -34,4 +29,4 @@ $db = MySQLPDOTest::factory(); print "done!"; ?> --EXPECTF-- -done! \ No newline at end of file +done! diff --git a/ext/session/tests/025.phpt b/ext/session/tests/025.phpt index 83ab6ca370..aa1f995c49 100644 --- a/ext/session/tests/025.phpt +++ b/ext/session/tests/025.phpt @@ -46,13 +46,6 @@ class handler { } function gc() { return true; } - - function __construct() - { - if (ini_get("unicode.semantics")) { - $this->data = str_replace('s:', 'U:', $this->data); - } - } } $hnd = new handler; diff --git a/ext/simplexml/tests/000.phpt b/ext/simplexml/tests/000.phpt index ae23dcfdd0..62615d17a2 100644 --- a/ext/simplexml/tests/000.phpt +++ b/ext/simplexml/tests/000.phpt @@ -22,7 +22,7 @@ test('sxe->elem1'); test('sxe->elem1[0]'); test('sxe->elem1[0]->elem2'); test('sxe->elem1[0]->elem2->bla'); -if (!ini_get("unicode_semantics")) test('sxe->elem1[0]["attr1"]'); +test('sxe->elem1[0]["attr1"]'); test('sxe->elem1[0]->attr1'); test('sxe->elem1[1]'); test('sxe->elem1[2]');