Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
d2fdbda9
Commit
d2fdbda9
authored
Sep 22, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改简网超时
parent
e57aa42c
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1157 additions
and
1153 deletions
+1157
-1153
Weixin.php
application/services/user/Weixin/Weixin.php
+2
-3
composer.lock
composer.lock
+42
-210
JwUser.php
vendor/api/php_services/src/JwUser/JwUser.php
+4
-4
Ks3Api.php
vendor/api/php_services/src/Ksy/Ks3Api.php
+57
-0
autoload.php
vendor/autoload.php
+1
-1
ClassLoader.php
vendor/composer/ClassLoader.php
+1
-3
InstalledVersions.php
vendor/composer/InstalledVersions.php
+562
-326
autoload_classmap.php
vendor/composer/autoload_classmap.php
+1
-0
autoload_files.php
vendor/composer/autoload_files.php
+5
-5
autoload_real.php
vendor/composer/autoload_real.php
+7
-7
autoload_static.php
vendor/composer/autoload_static.php
+10
-9
installed.json
vendor/composer/installed.json
+41
-209
installed.php
vendor/composer/installed.php
+310
-319
Ctype.php
vendor/symfony/polyfill-ctype/Ctype.php
+29
-24
wcswidth_table_wide.php
vendor/symfony/string/Resources/data/wcswidth_table_wide.php
+40
-24
wcswidth_table_zero.php
vendor/symfony/string/Resources/data/wcswidth_table_zero.php
+45
-9
No files found.
application/services/user/Weixin/Weixin.php
View file @
d2fdbda9
<?php
namespace
App\Services\user\Weixin\Weixin
;
use
App\Libraries\Http
;
namespace
App\Services\user\Weixin
;
/**
* Created by PhpStorm.
* User: shixing
* Date: 2018/9/12
* Time: 10:48
*/
...
...
composer.lock
View file @
d2fdbda9
This diff is collapsed.
Click to expand it.
vendor/api/php_services/src/JwUser/JwUser.php
View file @
d2fdbda9
...
...
@@ -38,7 +38,7 @@ class JwUser
$params
=
[
"mobilePhone"
=>
$params
[
'mobile'
]];
$begin
=
microtime
(
true
);
$user_info
=
(
new
Request
())
->
get
(
$url
,
$params
);
$user_info
=
(
new
Request
())
->
get
(
$url
,
$params
,
5000
);
$end
=
microtime
(
true
);
$total_time
=
round
((
$end
-
$begin
),
4
)
*
1000
;
if
(
!
empty
(
$user_info
[
'response'
]))
{
...
...
@@ -71,7 +71,7 @@ class JwUser
$params
=
[
"userId"
=>
$params
[
'user_id'
]];
$begin
=
microtime
(
true
);
$user_info
=
(
new
Request
())
->
post
(
$url
,
$params
);
$user_info
=
(
new
Request
())
->
post
(
$url
,
$params
,
5000
);
$end
=
microtime
(
true
);
$total_time
=
round
((
$end
-
$begin
),
4
)
*
1000
;
if
(
!
empty
(
$user_info
[
'response'
]))
{
...
...
@@ -102,7 +102,7 @@ class JwUser
$params
=
[
"userIds"
=>
$params
[
'user_id'
]];
$begin
=
microtime
(
true
);
$user_info
=
(
new
Request
())
->
post
(
$url
,
$params
);
$user_info
=
(
new
Request
())
->
post
(
$url
,
$params
,
5000
);
$end
=
microtime
(
true
);
$total_time
=
round
((
$end
-
$begin
),
4
)
*
1000
;
if
(
!
empty
(
$user_info
[
'response'
]))
{
...
...
@@ -133,7 +133,7 @@ class JwUser
}
$params
=
[];
//$city_list = (new TimeOut())->runGet($url, $params);
$city_list
=
(
new
Request
())
->
get
(
$url
,
$params
);
$city_list
=
(
new
Request
())
->
get
(
$url
,
$params
,
5000
);
FileLog
::
info
(
'jw_user_getAllCityTree'
,
json_encode
(
$city_list
));
if
(
!
$city_list
)
{
throw
new
CodeSpecialException
(
"timeout"
);
...
...
vendor/api/php_services/src/Ksy/Ks3Api.php
View file @
d2fdbda9
...
...
@@ -180,4 +180,61 @@ class Ks3Api
list
(
$msec
,
$sec
)
=
explode
(
' '
,
microtime
());
return
(
float
)
sprintf
(
'%.0f'
,
(
floatval
(
$msec
)
+
floatval
(
$sec
))
*
1000
);
}
/**
* 批量获取图片
* @param $imageIds image_id 数组
* @param int $widthSize
* @param int $highSize
* @param float|int $expirationTime
* @return array
*/
public
static
function
concurrencyPicEncryptUrl
(
$imageIds
,
$widthSize
=
0
,
$highSize
=
0
,
$expirationTime
=
60
*
60
*
24
*
365
)
{
$url
=
self
::
BASE_GEN_URL
.
self
::
PATH_PIC_ENCRYPT_URL
;
$timestamp
=
self
::
msectime
();
$extend
=
[];
$extend
[
"expiration_time"
]
=
$expirationTime
;
if
(
!
empty
(
$widthSize
)
&&
!
empty
(
$highSize
))
{
$extend
[
"query"
]
=
"type=thumbnail_"
.
$widthSize
.
"x"
.
$highSize
;
}
$extendJsonStr
=
json_encode
(
$extend
);
$params
=
[];
$urls
=
[];
foreach
(
$imageIds
as
$imageId
)
{
$md5Str
=
$extendJsonStr
.
"&"
.
$imageId
.
"&"
.
self
::
AUDIT_ID
.
"&"
.
$timestamp
.
"&"
.
self
::
KSYUN_SK
;
$signature
=
self
::
KSYUN_AK
.
":"
.
md5
(
$md5Str
);
$contentType
=
'multipart/form-data'
;
$param
=
[
"image_id"
=>
$imageId
,
"auth_id"
=>
self
::
AUDIT_ID
,
"timestamp"
=>
$timestamp
,
"signature"
=>
$signature
,
"content_type"
=>
$contentType
,
"extend"
=>
$extendJsonStr
,
];
$params
[
$imageId
]
=
$param
;
$urls
[
$imageId
]
=
$url
;
}
$data
=
[];
if
(
!
empty
(
$urls
))
{
$begin
=
microtime
(
true
);
$encryptRes
=
HttpUtil
::
concurrencyPost
(
$urls
,
$params
);
$end
=
microtime
(
true
);
$totalTime
=
round
((
$end
-
$begin
),
4
)
*
1000
;
$resCode
=
$encryptRes
[
"response"
][
'code'
]
===
0
?
200
:
$encryptRes
[
"response"
][
'code'
];
MonUtil
::
proxyMon
(
$url
,
$resCode
,
'ks3api'
,
$totalTime
);
if
(
!
empty
(
$encryptRes
))
{
foreach
(
$encryptRes
as
$imageId
=>
$item
)
{
if
(
!
empty
(
$item
[
"response"
][
"data"
][
"url"
]))
{
$data
[
$imageId
]
=
$item
[
"response"
][
"data"
][
"url"
];
}
}
}
}
return
$data
;
}
}
\ No newline at end of file
vendor/autoload.php
View file @
d2fdbda9
...
...
@@ -4,4 +4,4 @@
require_once
__DIR__
.
'/composer/autoload_real.php'
;
return
ComposerAutoloaderInit
147d97defc074a277015f080b27e01c6
::
getLoader
();
return
ComposerAutoloaderInit
e9c1cf708c572b30ccbaa1adb865583e
::
getLoader
();
vendor/composer/ClassLoader.php
View file @
d2fdbda9
...
...
@@ -338,7 +338,7 @@ class ClassLoader
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return
true
|null True if loaded, null otherwise
* @return
bool
|null True if loaded, null otherwise
*/
public
function
loadClass
(
$class
)
{
...
...
@@ -347,8 +347,6 @@ class ClassLoader
return
true
;
}
return
null
;
}
/**
...
...
vendor/composer/InstalledVersions.php
View file @
d2fdbda9
This diff is collapsed.
Click to expand it.
vendor/composer/autoload_classmap.php
View file @
d2fdbda9
...
...
@@ -165,6 +165,7 @@ return array(
'App\\Services\\tcc\\TccService'
=>
$baseDir
.
'/application/services/tcc/TccService.php'
,
'App\\Services\\user\\UserService'
=>
$baseDir
.
'/application/services/user/UserService.php'
,
'App\\Services\\user\\Weixin\\ErrorCode'
=>
$baseDir
.
'/application/services/user/Weixin/ErrorCode.php'
,
'App\\Services\\user\\Weixin\\Weixin'
=>
$baseDir
.
'/application/services/user/Weixin/Weixin.php'
,
'App\\Services\\user\\Weixin\\WxBizDataCrypt'
=>
$baseDir
.
'/application/services/user/Weixin/WxBizDataCrypt.php'
,
'Attribute'
=>
$vendorDir
.
'/symfony/polyfill-php80/Resources/stubs/Attribute.php'
,
'BaconQrCode\\Common\\BitArray'
=>
$vendorDir
.
'/bacon/bacon-qr-code/src/Common/BitArray.php'
,
...
...
vendor/composer/autoload_files.php
View file @
d2fdbda9
...
...
@@ -8,18 +8,18 @@ $baseDir = dirname($vendorDir);
return
array
(
'a4a119a56e50fbb293281d9a48007e0e'
=>
$vendorDir
.
'/symfony/polyfill-php80/bootstrap.php'
,
'6e3fae29631ef280660b3cdad06f25a8'
=>
$vendorDir
.
'/symfony/deprecation-contracts/function.php'
,
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a'
=>
$vendorDir
.
'/symfony/polyfill-mbstring/bootstrap.php'
,
'e69f7f6ee287b969198c3c9d6777bd38'
=>
$vendorDir
.
'/symfony/polyfill-intl-normalizer/bootstrap.php'
,
'8825ede83f2f289127722d4e842cf7e8'
=>
$vendorDir
.
'/symfony/polyfill-intl-grapheme/bootstrap.php'
,
'320cde22f66dd4f5d3fd621d3e88b98f'
=>
$vendorDir
.
'/symfony/polyfill-ctype/bootstrap.php'
,
'8825ede83f2f289127722d4e842cf7e8'
=>
$vendorDir
.
'/symfony/polyfill-intl-grapheme/bootstrap.php'
,
'e69f7f6ee287b969198c3c9d6777bd38'
=>
$vendorDir
.
'/symfony/polyfill-intl-normalizer/bootstrap.php'
,
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a'
=>
$vendorDir
.
'/symfony/polyfill-mbstring/bootstrap.php'
,
'b6b991a57620e2fb6b2f66f03fe9ddc2'
=>
$vendorDir
.
'/symfony/string/Resources/functions.php'
,
'0d59ee240a4cd96ddbb4ff164fccea4d'
=>
$vendorDir
.
'/symfony/polyfill-php73/bootstrap.php'
,
'7b11c4dc42b3b3023073cb14e519683c'
=>
$vendorDir
.
'/ralouphie/getallheaders/src/getallheaders.php'
,
'ad155f8f1cf0d418fe49e248db8c661b'
=>
$vendorDir
.
'/react/promise/src/functions_include.php'
,
'0d59ee240a4cd96ddbb4ff164fccea4d'
=>
$vendorDir
.
'/symfony/polyfill-php73/bootstrap.php'
,
'c964ee0ededf28c96ebd9db5099ef910'
=>
$vendorDir
.
'/guzzlehttp/promises/src/functions_include.php'
,
'a0edc8309cc5e1d60e3047b5df6b7052'
=>
$vendorDir
.
'/guzzlehttp/psr7/src/functions_include.php'
,
'a9ed0d27b5a698798a89181429f162c5'
=>
$vendorDir
.
'/khanamiryan/qrcode-detector-decoder/lib/Common/customFunctions.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
$vendorDir
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
$vendorDir
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
$vendorDir
.
'/mongodb/mongodb/src/functions.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
$vendorDir
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
);
vendor/composer/autoload_real.php
View file @
d2fdbda9
...
...
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class
ComposerAutoloaderInit
147d97defc074a277015f080b27e01c6
class
ComposerAutoloaderInit
e9c1cf708c572b30ccbaa1adb865583e
{
private
static
$loader
;
...
...
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit147d97defc074a277015f080b27e01c6
require
__DIR__
.
'/platform_check.php'
;
spl_autoload_register
(
array
(
'ComposerAutoloaderInit
147d97defc074a277015f080b27e01c6
'
,
'loadClassLoader'
),
true
,
true
);
spl_autoload_register
(
array
(
'ComposerAutoloaderInit
e9c1cf708c572b30ccbaa1adb865583e
'
,
'loadClassLoader'
),
true
,
true
);
self
::
$loader
=
$loader
=
new
\Composer\Autoload\ClassLoader
(
\dirname
(
\dirname
(
__FILE__
)));
spl_autoload_unregister
(
array
(
'ComposerAutoloaderInit
147d97defc074a277015f080b27e01c6
'
,
'loadClassLoader'
));
spl_autoload_unregister
(
array
(
'ComposerAutoloaderInit
e9c1cf708c572b30ccbaa1adb865583e
'
,
'loadClassLoader'
));
$useStaticLoader
=
PHP_VERSION_ID
>=
50600
&&
!
defined
(
'HHVM_VERSION'
)
&&
(
!
function_exists
(
'zend_loader_file_encoded'
)
||
!
zend_loader_file_encoded
());
if
(
$useStaticLoader
)
{
require
__DIR__
.
'/autoload_static.php'
;
call_user_func
(
\Composer\Autoload\ComposerStaticInit
147d97defc074a277015f080b27e01c6
::
getInitializer
(
$loader
));
call_user_func
(
\Composer\Autoload\ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
::
getInitializer
(
$loader
));
}
else
{
$map
=
require
__DIR__
.
'/autoload_namespaces.php'
;
foreach
(
$map
as
$namespace
=>
$path
)
{
...
...
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit147d97defc074a277015f080b27e01c6
$loader
->
register
(
true
);
if
(
$useStaticLoader
)
{
$includeFiles
=
Composer\Autoload\ComposerStaticInit
147d97defc074a277015f080b27e01c6
::
$files
;
$includeFiles
=
Composer\Autoload\ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
::
$files
;
}
else
{
$includeFiles
=
require
__DIR__
.
'/autoload_files.php'
;
}
foreach
(
$includeFiles
as
$fileIdentifier
=>
$file
)
{
composerRequire
147d97defc074a277015f080b27e01c6
(
$fileIdentifier
,
$file
);
composerRequire
e9c1cf708c572b30ccbaa1adb865583e
(
$fileIdentifier
,
$file
);
}
return
$loader
;
}
}
function
composerRequire
147d97defc074a277015f080b27e01c6
(
$fileIdentifier
,
$file
)
function
composerRequire
e9c1cf708c572b30ccbaa1adb865583e
(
$fileIdentifier
,
$file
)
{
if
(
empty
(
$GLOBALS
[
'__composer_autoload_files'
][
$fileIdentifier
]))
{
require
$file
;
...
...
vendor/composer/autoload_static.php
View file @
d2fdbda9
...
...
@@ -4,25 +4,25 @@
namespace
Composer\Autoload
;
class
ComposerStaticInit
147d97defc074a277015f080b27e01c6
class
ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
{
public
static
$files
=
array
(
'a4a119a56e50fbb293281d9a48007e0e'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-php80/bootstrap.php'
,
'6e3fae29631ef280660b3cdad06f25a8'
=>
__DIR__
.
'/..'
.
'/symfony/deprecation-contracts/function.php'
,
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-mbstring/bootstrap.php'
,
'e69f7f6ee287b969198c3c9d6777bd38'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-intl-normalizer/bootstrap.php'
,
'8825ede83f2f289127722d4e842cf7e8'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-intl-grapheme/bootstrap.php'
,
'320cde22f66dd4f5d3fd621d3e88b98f'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-ctype/bootstrap.php'
,
'8825ede83f2f289127722d4e842cf7e8'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-intl-grapheme/bootstrap.php'
,
'e69f7f6ee287b969198c3c9d6777bd38'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-intl-normalizer/bootstrap.php'
,
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-mbstring/bootstrap.php'
,
'b6b991a57620e2fb6b2f66f03fe9ddc2'
=>
__DIR__
.
'/..'
.
'/symfony/string/Resources/functions.php'
,
'0d59ee240a4cd96ddbb4ff164fccea4d'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-php73/bootstrap.php'
,
'7b11c4dc42b3b3023073cb14e519683c'
=>
__DIR__
.
'/..'
.
'/ralouphie/getallheaders/src/getallheaders.php'
,
'ad155f8f1cf0d418fe49e248db8c661b'
=>
__DIR__
.
'/..'
.
'/react/promise/src/functions_include.php'
,
'0d59ee240a4cd96ddbb4ff164fccea4d'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-php73/bootstrap.php'
,
'c964ee0ededf28c96ebd9db5099ef910'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/promises/src/functions_include.php'
,
'a0edc8309cc5e1d60e3047b5df6b7052'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/psr7/src/functions_include.php'
,
'a9ed0d27b5a698798a89181429f162c5'
=>
__DIR__
.
'/..'
.
'/khanamiryan/qrcode-detector-decoder/lib/Common/customFunctions.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
__DIR__
.
'/..'
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
__DIR__
.
'/..'
.
'/mongodb/mongodb/src/functions.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
__DIR__
.
'/..'
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
);
public
static
$prefixLengthsPsr4
=
array
(
...
...
@@ -394,6 +394,7 @@ class ComposerStaticInit147d97defc074a277015f080b27e01c6
'App\\Services\\tcc\\TccService'
=>
__DIR__
.
'/../..'
.
'/application/services/tcc/TccService.php'
,
'App\\Services\\user\\UserService'
=>
__DIR__
.
'/../..'
.
'/application/services/user/UserService.php'
,
'App\\Services\\user\\Weixin\\ErrorCode'
=>
__DIR__
.
'/../..'
.
'/application/services/user/Weixin/ErrorCode.php'
,
'App\\Services\\user\\Weixin\\Weixin'
=>
__DIR__
.
'/../..'
.
'/application/services/user/Weixin/Weixin.php'
,
'App\\Services\\user\\Weixin\\WxBizDataCrypt'
=>
__DIR__
.
'/../..'
.
'/application/services/user/Weixin/WxBizDataCrypt.php'
,
'Attribute'
=>
__DIR__
.
'/..'
.
'/symfony/polyfill-php80/Resources/stubs/Attribute.php'
,
'BaconQrCode\\Common\\BitArray'
=>
__DIR__
.
'/..'
.
'/bacon/bacon-qr-code/src/Common/BitArray.php'
,
...
...
@@ -1315,9 +1316,9 @@ class ComposerStaticInit147d97defc074a277015f080b27e01c6
public
static
function
getInitializer
(
ClassLoader
$loader
)
{
return
\Closure
::
bind
(
function
()
use
(
$loader
)
{
$loader
->
prefixLengthsPsr4
=
ComposerStaticInit
147d97defc074a277015f080b27e01c6
::
$prefixLengthsPsr4
;
$loader
->
prefixDirsPsr4
=
ComposerStaticInit
147d97defc074a277015f080b27e01c6
::
$prefixDirsPsr4
;
$loader
->
classMap
=
ComposerStaticInit
147d97defc074a277015f080b27e01c6
::
$classMap
;
$loader
->
prefixLengthsPsr4
=
ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
::
$prefixLengthsPsr4
;
$loader
->
prefixDirsPsr4
=
ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
::
$prefixDirsPsr4
;
$loader
->
classMap
=
ComposerStaticInit
e9c1cf708c572b30ccbaa1adb865583e
::
$classMap
;
},
null
,
ClassLoader
::
class
);
}
...
...
vendor/composer/installed.json
View file @
d2fdbda9
This diff is collapsed.
Click to expand it.
vendor/composer/installed.php
View file @
d2fdbda9
This diff is collapsed.
Click to expand it.
vendor/symfony/polyfill-ctype/Ctype.php
View file @
d2fdbda9
...
...
@@ -25,13 +25,13 @@ final class Ctype
*
* @see https://php.net/ctype-alnum
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_alnum
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^A-Za-z0-9]/'
,
$text
);
}
...
...
@@ -41,13 +41,13 @@ final class Ctype
*
* @see https://php.net/ctype-alpha
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_alpha
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^A-Za-z]/'
,
$text
);
}
...
...
@@ -57,13 +57,13 @@ final class Ctype
*
* @see https://php.net/ctype-cntrl
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_cntrl
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^\x00-\x1f\x7f]/'
,
$text
);
}
...
...
@@ -73,13 +73,13 @@ final class Ctype
*
* @see https://php.net/ctype-digit
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_digit
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^0-9]/'
,
$text
);
}
...
...
@@ -89,13 +89,13 @@ final class Ctype
*
* @see https://php.net/ctype-graph
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_graph
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^!-~]/'
,
$text
);
}
...
...
@@ -105,13 +105,13 @@ final class Ctype
*
* @see https://php.net/ctype-lower
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_lower
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^a-z]/'
,
$text
);
}
...
...
@@ -121,13 +121,13 @@ final class Ctype
*
* @see https://php.net/ctype-print
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_print
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^ -~]/'
,
$text
);
}
...
...
@@ -137,13 +137,13 @@ final class Ctype
*
* @see https://php.net/ctype-punct
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_punct
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^!-\/\:-@\[-`\{-~]/'
,
$text
);
}
...
...
@@ -153,13 +153,13 @@ final class Ctype
*
* @see https://php.net/ctype-space
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_space
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^\s]/'
,
$text
);
}
...
...
@@ -169,13 +169,13 @@ final class Ctype
*
* @see https://php.net/ctype-upper
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_upper
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^A-Z]/'
,
$text
);
}
...
...
@@ -185,13 +185,13 @@ final class Ctype
*
* @see https://php.net/ctype-xdigit
*
* @param
string|int
$text
* @param
mixed
$text
*
* @return bool
*/
public
static
function
ctype_xdigit
(
$text
)
{
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
);
$text
=
self
::
convert_int_to_char_for_ctype
(
$text
,
__FUNCTION__
);
return
\is_string
(
$text
)
&&
''
!==
$text
&&
!
preg_match
(
'/[^A-Fa-f0-9]/'
,
$text
);
}
...
...
@@ -204,11 +204,12 @@ final class Ctype
* (negative values have 256 added in order to allow characters in the Extended ASCII range).
* Any other integer is interpreted as a string containing the decimal digits of the integer.
*
* @param string|int $int
* @param mixed $int
* @param string $function
*
* @return mixed
*/
private
static
function
convert_int_to_char_for_ctype
(
$int
)
private
static
function
convert_int_to_char_for_ctype
(
$int
,
$function
)
{
if
(
!
\is_int
(
$int
))
{
return
$int
;
...
...
@@ -218,6 +219,10 @@ final class Ctype
return
(
string
)
$int
;
}
if
(
\PHP_VERSION_ID
>=
80100
)
{
@
trigger_error
(
$function
.
'(): Argument of type int will be interpreted as string in the future'
,
\E_USER_DEPRECATED
);
}
if
(
$int
<
0
)
{
$int
+=
256
;
}
...
...
vendor/symfony/string/Resources/data/wcswidth_table_wide.php
View file @
d2fdbda9
...
...
@@ -3,8 +3,8 @@
/*
* This file has been auto-generated by the Symfony String Component for internal use.
*
* Unicode version: 1
3
.0.0
* Date: 202
0-03-12T08:04:33+00
:00
* Unicode version: 1
4
.0.0
* Date: 202
1-09-17T09:20:30+02
:00
*/
return
[
...
...
@@ -450,10 +450,6 @@ return [
],
[
19968
,
40956
,
],
[
40957
,
40959
,
],
[
...
...
@@ -840,13 +836,25 @@ return [
101632
,
101640
,
],
[
110576
,
110579
,
],
[
110581
,
110587
,
],
[
110589
,
110590
,
],
[
110592
,
110847
,
],
[
110848
,
1108
78
,
1108
82
,
],
[
110928
,
...
...
@@ -996,6 +1004,10 @@ return [
128725
,
128727
,
],
[
128733
,
128735
,
],
[
128747
,
128748
,
...
...
@@ -1008,6 +1020,10 @@ return [
128992
,
129003
,
],
[
129008
,
129008
,
],
[
129292
,
129338
,
...
...
@@ -1018,14 +1034,6 @@ return [
],
[
129351
,
129400
,
],
[
129402
,
129483
,
],
[
129485
,
129535
,
],
[
...
...
@@ -1034,7 +1042,7 @@ return [
],
[
129656
,
1296
58
,
1296
60
,
],
[
129664
,
...
...
@@ -1042,34 +1050,42 @@ return [
],
[
129680
,
12970
4
,
12970
8
,
],
[
129712
,
1297
18
,
1297
22
,
],
[
129728
,
12973
0
,
12973
3
,
],
[
129744
,
129750
,
129753
,
],
[
129760
,
129767
,
],
[
129776
,
129782
,
],
[
131072
,
1737
89
,
1737
91
,
],
[
17379
0
,
17379
2
,
173823
,
],
[
173824
,
17797
2
,
17797
6
,
],
[
17797
3
,
17797
7
,
177983
,
],
[
...
...
vendor/symfony/string/Resources/data/wcswidth_table_zero.php
View file @
d2fdbda9
...
...
@@ -3,8 +3,8 @@
/*
* This file has been auto-generated by the Symfony String Component for internal use.
*
* Unicode version: 1
3
.0.0
* Date: 202
0-03-12T08:04:34+00
:00
* Unicode version: 1
4
.0.0
* Date: 202
1-09-17T09:20:30+02
:00
*/
return
[
...
...
@@ -109,7 +109,11 @@ return [
2139
,
],
[
2259
,
2200
,
2207
,
],
[
2250
,
2273
,
],
[
...
...
@@ -272,6 +276,10 @@ return [
3076
,
3076
,
],
[
3132
,
3132
,
],
[
3134
,
3136
,
...
...
@@ -470,7 +478,7 @@ return [
],
[
5938
,
59
40
,
59
39
,
],
[
5970
,
...
...
@@ -504,6 +512,10 @@ return [
6155
,
6157
,
],
[
6159
,
6159
,
],
[
6277
,
6278
,
...
...
@@ -574,7 +586,7 @@ return [
],
[
6847
,
68
48
,
68
62
,
],
[
6912
,
...
...
@@ -666,10 +678,6 @@ return [
],
[
7616
,
7673
,
],
[
7675
,
7679
,
],
[
...
...
@@ -916,6 +924,10 @@ return [
69446
,
69456
,
],
[
69506
,
69509
,
],
[
69633
,
69633
,
...
...
@@ -924,6 +936,14 @@ return [
69688
,
69702
,
],
[
69744
,
69744
,
],
[
69747
,
69748
,
],
[
69759
,
69761
,
...
...
@@ -936,6 +956,10 @@ return [
69817
,
69818
,
],
[
69826
,
69826
,
],
[
69888
,
69890
,
...
...
@@ -1252,6 +1276,14 @@ return [
113821
,
113822
,
],
[
118528
,
118573
,
],
[
118576
,
118598
,
],
[
119143
,
119145
,
...
...
@@ -1320,6 +1352,10 @@ return [
123184
,
123190
,
],
[
123566
,
123566
,
],
[
123628
,
123631
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment