Remove PHP ctype extension usage.
This commit is contained in:
parent
6a2dba9e8c
commit
d63a16ef8b
@ -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';
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user