Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 6e24213

Browse files
committed
Remove mb_stlen() invocation as mbstring is not always available by default
1 parent b82f175 commit 6e24213

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

‎tests/V8StringValue.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ $v8_helper = new PhpV8Helpers($helper);
1313

1414
// Tests:
1515

16-
1716
$isolate = new V8\Isolate();
1817

1918
$default = new V8\StringValue($isolate);
@@ -87,7 +86,6 @@ foreach (['Hello, world!', 'Привет, мир!', 'こんにちは世界'] as
8786
$helper->method_export($value, 'ContainsOnlyOneByte');
8887

8988
$helper->function_export('strlen', [$value->Value()]);
90-
$helper->function_export('mb_strlen', [$value->Value()]);
9189
$helper->space();
9290
}
9391

@@ -207,7 +205,6 @@ V8\StringValue->Utf8Length(): int(13)
207205
V8\StringValue->IsOneByte(): bool(true)
208206
V8\StringValue->ContainsOnlyOneByte(): bool(true)
209207
strlen(): 13
210-
mb_strlen(): 13
211208

212209

213210
V8\StringValue->Value(): string(21) "Привет, мир!"
@@ -216,7 +213,6 @@ V8\StringValue->Utf8Length(): int(21)
216213
V8\StringValue->IsOneByte(): bool(false)
217214
V8\StringValue->ContainsOnlyOneByte(): bool(false)
218215
strlen(): 21
219-
mb_strlen(): 12
220216

221217

222218
V8\StringValue->Value(): string(21) "こんにちは世界"
@@ -225,4 +221,3 @@ V8\StringValue->Utf8Length(): int(21)
225221
V8\StringValue->IsOneByte(): bool(false)
226222
V8\StringValue->ContainsOnlyOneByte(): bool(false)
227223
strlen(): 21
228-
mb_strlen(): 7

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /