Remove PHP ctype extension usage.

This commit is contained in:
levlam 2020-11-11 16:38:48 +03:00
parent 6a2dba9e8c
commit d63a16ef8b
2 changed files with 3 additions and 3 deletions

View File

@ -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';
}

View File

@ -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 {