diff --git a/build.html b/build.html
index 2a2bab1c8..ae6629c72 100644
--- a/build.html
+++ b/build.html
@@ -604,7 +604,7 @@ function onOptionsChanged() {
case 'Alpine':
commands.push(sudo + 'apk update');
commands.push(sudo + 'apk upgrade');
- var packages = 'alpine-sdk linux-headers git zlib-dev openssl-dev gperf php php-ctype cmake';
+ var packages = 'alpine-sdk linux-headers git zlib-dev openssl-dev gperf php cmake';
if (target === 'JNI') {
packages += ' openjdk8';
}
@@ -676,7 +676,7 @@ function onOptionsChanged() {
}
} else if (os_freebsd) {
commands.push(sudo + 'pkg upgrade');
- var packages = 'git gperf php72 php72-ctype cmake';
+ var packages = 'git gperf php72 cmake';
if (target === 'JNI') {
packages += ' openjdk';
}
diff --git a/td/generate/TlDocumentationGenerator.php b/td/generate/TlDocumentationGenerator.php
index 9346fae14..0882b3326 100644
--- a/td/generate/TlDocumentationGenerator.php
+++ b/td/generate/TlDocumentationGenerator.php
@@ -53,7 +53,7 @@ abstract class TlDocumentationGenerator
}
}
if ($bracket_count === 0) {
- if (ctype_upper($str[$pos + 1])) {
+ if (ord('A') <= ord($str[$pos + 1]) && ord($str[$pos + 1]) <= ord('Z')) {
return substr($str, 0, -1).'.)';
}
} else {