1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 22:34:42 +01:00

Fixes for windows, added requirements+++

This commit is contained in:
Daniil Gentili 2017-05-29 18:57:58 +01:00
parent 76fd51199e
commit 1858b7f8c8
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
"rollbar/rollbar": "dev-master",
"ext-mbstring": "*",
"ext-curl": "*",
"ext-sockets": "*",
"ext-xml": "*"
},

View File

@ -43,6 +43,7 @@ trait TL
$class = null;
$dparams = [];
foreach ($tl_file as $line) {
$line = rtrim($line);
if (preg_match('|^//@|', $line)) {
$list = explode(' @', str_replace('//', ' ', $line));
foreach ($list as $elem) {
@ -83,7 +84,7 @@ trait TL
$type = 'constructors';
continue;
}
if (preg_match('|^===\d*===$|', $line)) {
if (preg_match('|^===\d*===|', $line)) {
$layer = (int) preg_replace('|\D*|', '', $line);
continue;
}