Skip to content

Commit 4083600

Browse files
committed
Port mbstring to use EXTENSIONS
1 parent 8567bc1 commit 4083600

32 files changed

+62
-73
lines changed

ext/mbstring/tests/bug62934.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #62934: mb_convert_kana() does not convert iteration marks
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
echo mb_convert_kana('あゝすゞめアヽスヾメ', 'C', 'UTF-8') . "\n";

ext/mbstring/tests/bug65544.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #65544: mb title case conversion-first word in quotation isn't capitalized
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
var_dump(mb_convert_case("\"or else it doesn't, you know. the name of the song is called 'haddocks' eyes.'\"", MB_CASE_TITLE));

ext/mbstring/tests/bug69267.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #69267: mb_strtolower fails on titlecase characters
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77

ext/mbstring/tests/bug71298.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #71298: MB_CASE_TITLE misbehaves with curled apostrophe/quote (HTML &rsquo;)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
echo mb_convert_case("People's issues versus people’s issues", MB_CASE_TITLE);

ext/mbstring/tests/bug72399.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #72399 (Use-After-Free in MBString (search_re))
3+
--EXTENSIONS--
4+
mbstring
35
--SKIPIF--
46
<?php
5-
require 'skipif.inc';
67
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
78
?>
89
--FILE--

ext/mbstring/tests/bug73532.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #73532 (Null pointer dereference in mb_eregi)
3+
--EXTENSIONS--
4+
mbstring
35
--SKIPIF--
46
<?php
5-
require 'skipif.inc';
67
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
78
?>
89
--FILE--

ext/mbstring/tests/bug73646.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #73646 (mb_ereg_search_init null pointer dereference)
3+
--EXTENSIONS--
4+
mbstring
35
--SKIPIF--
46
<?php
5-
require 'skipif.inc';
67
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
78
?>
89
--FILE--

ext/mbstring/tests/bug76532.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
$string_to_trim = '得很幸福。有一天,一个长得很丑的老人带着一只木马来到王';

ext/mbstring/tests/bug77165.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #77165: mb_check_encoding crashes when argument given an empty array
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
var_dump(mb_check_encoding(array()));

ext/mbstring/tests/bug77454.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #77454: mb_scrub() silently truncates after a null byte
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77
$str = "before\0after";

ext/mbstring/tests/casefolding.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Case-insensitive string comparisons use case folding
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77

ext/mbstring/tests/casemapping.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Unicode case mapping
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77

ext/mbstring/tests/internal_encoding.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Check that "internal_encoding" ini is picked up by mbstring
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
internal_encoding=iso-8859-1
77
--FILE--

ext/mbstring/tests/mb_convert_case_various_mode.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Calling mb_convert_case() with an invalid casing mode
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77

ext/mbstring/tests/mb_convert_encoding_leak.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
mb_convert_encoding() shouldn't leak keys
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--FILE--
66
<?php
77

ext/mbstring/tests/skipif.inc

Lines changed: 0 additions & 14 deletions
This file was deleted.

ext/mbstring/tests/zend_multibyte-01.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (1)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=Shift_JIS

ext/mbstring/tests/zend_multibyte-02.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (2)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
error_reporting=E_ALL & ~E_DEPRECATED
77
zend.multibyte=On

ext/mbstring/tests/zend_multibyte-03.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (3)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=UTF-8

ext/mbstring/tests/zend_multibyte-04.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (4)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=CP932

ext/mbstring/tests/zend_multibyte-05.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (5)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=EUC-JP

ext/mbstring/tests/zend_multibyte-06.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (6)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=EUC-JP

ext/mbstring/tests/zend_multibyte-07.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (7)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=ISO-8859-1

ext/mbstring/tests/zend_multibyte-08.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (8)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=ISO-8859-1

ext/mbstring/tests/zend_multibyte-09.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (9)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=cp1251

ext/mbstring/tests/zend_multibyte-10.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (10)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=1
77
--FILE--

ext/mbstring/tests/zend_multibyte-11.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (11)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=1
77
--FILE--

ext/mbstring/tests/zend_multibyte-12.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (12)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=1
77
--FILE--

ext/mbstring/tests/zend_multibyte-13.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (13)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=UTF-8

ext/mbstring/tests/zend_multibyte-14.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (14)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=On
77
zend.script_encoding=UTF-8

ext/mbstring/tests/zend_multibyte-15.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (15)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=1
77
--FILE--

ext/mbstring/tests/zend_multibyte-16.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
zend multibyte (16)
3-
--SKIPIF--
4-
<?php require 'skipif.inc'; ?>
3+
--EXTENSIONS--
4+
mbstring
55
--INI--
66
zend.multibyte=1
77
--FILE--

0 commit comments

Comments
 (0)